[asterisk-bugs] [Asterisk 0015672]: ? in register= string breaks registration

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 7 00:51:13 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15672 
====================================================================== 
Reported By:                test011
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15672
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.0-beta4 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-08-07 00:42 CDT
Last Modified:              2009-08-07 00:51 CDT
====================================================================== 
Summary:                    ? in register= string breaks registration
Description: 
If you put '?' (w/o quotation) in register= string in sip.conf, asterisk
does not parse it properly.

One of my register= string has '?' in its password section, and asterisk
can't parse it properly. This does not affect other lines in sip.conf

The string I used is as bellow,

register =>xxx at xxx.com:abc!5j5?!9!:xxx at hostip/123

Does '?' have been used as some token? Maybe I did not get that. I am
pretty sure I haven't seen it in change.log or sip.conf.sample.

The registration strings have worked fine with version 1.4.2, 1.6.0, and
1.6.1.0.
====================================================================== 

---------------------------------------------------------------------- 
 (0108753) test011 (reporter) - 2009-08-07 00:51
 https://issues.asterisk.org/view.php?id=15672#c108753 
---------------------------------------------------------------------- 
WARNING[1081]: chan_sip.c:10986 transmit_register: Could not find peer
xxx at xxx.com:abc!5j5 in transmit_register.

Notice the password is chopped at '?' of abc!5j5?!9!

I must note that I am using very slightly modified version of chan_sip.so
of 1.6.2.0-beta4 which concerns custom SIP_PING routine for one of my
devices. I am sure this is not related to the problem. I have been using
this modification since 1.4.x. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-07 00:51 test011        Note Added: 0108753                          
======================================================================




More information about the asterisk-bugs mailing list