Pre-Submission Checklist
Type Of Change
Checklist:
Description
Diameter request MAR and corresponding response MAA both contain authentication vectors in binary form. Ims_diameter_server lacks functionality to convert binary arrays to json and back. This pr is a couple of minor fixes to rectify the issue:
- when converting Diameter binary vector to json use %02x in sprintf() to form a proper hexdump which is possible to decode on json side. The hexdump is sent in "data" key value pair as string.
- introduce new key value pair "hexdump" in json which will contain hex dump of binary vector formed on json side. ims_diameter_server converts it to Diameter AVP using hex dump to binary transcoding.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1528
Commit Summary
- use hexdump type of string to send binary data in json
- duplicate before giving it to cdp
- converting binary data to hex dump requires fixed width lenght in snprintf
File Changes
Patch Links:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.