[asterisk-bugs] [LibPRI 0017594]: UUI Information is treated as a null terminated string, it's really a binary value.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 7 03:30:00 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17594 
====================================================================== 
Reported By:                mrwho
Assigned To:                
====================================================================== 
Project:                    LibPRI
Issue ID:                   17594
Category:                   General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
libpri Version:             SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 1827 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-07 03:29 CDT
Last Modified:              2010-07-07 03:29 CDT
====================================================================== 
Summary:                    UUI Information is treated as a null terminated
string, it's really a binary value.
Description: 
  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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-07 03:30 mrwho          Asterisk Version          => SVN             
2010-07-07 03:30 mrwho          libpri Version            => SVN             
2010-07-07 03:30 mrwho          SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2010-07-07 03:30 mrwho          SVN Revision (number only!) => 1827            
======================================================================




More information about the asterisk-bugs mailing list