[asterisk-bugs] [JIRA] Updated: (PRI-106) [patch] UUI Information is treated as a null terminated string, it's really a binary value.
Helmut Grohne (JIRA)
noreply at issues.asterisk.org
Fri Sep 21 09:21:27 CDT 2012
[ https://issues.asterisk.org/jira/browse/PRI-106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Helmut Grohne updated PRI-106:
------------------------------
Attachment: libpri-uui.patch.patch
In order to comply with the license agreement I cannot upload this patch itself, but have to upload it as a patch to the existing libpri-uui.patch on which this work is based. The resulting patch applies against 1.4.12 and does not break API by ensuring that useruserinfo is always 0 terminated and has a length.
> [patch] UUI Information is treated as a null terminated string, it's really a binary value.
> -------------------------------------------------------------------------------------------
>
> Key: PRI-106
> URL: https://issues.asterisk.org/jira/browse/PRI-106
> Project: LibPRI
> Issue Type: Bug
> Components: General
> Reporter: Fabio Torchetti
> Severity: Minor
> Attachments: asterisk-uui.patch, libpri-uui.patch, libpri-uui.patch.patch
>
>
> UUI is being treated in libpri as a null terminated string, The truth is that the standard actually even defines "\000" to be a marker for user specific data. The implementation as it is wouldn't work for several custom uses of UUI.
> The patch included makes that field a binary value. I also have included a patch for asterisk, since then it takes a different approach to getting and setting the UUI from the channel: we need to take into account that this variable is a binary one. I created two new functions that allow to set and get a variable from the channel by coding it in base64. Possibly not the most elegant way, but it does the job pretty well.
> ****** ADDITIONAL INFORMATION ******
> Attaching two patches for libpri and asterisk; this is a quick fix for people that need UUI data form the ISDN channel.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list