[asterisk-bugs] [Asterisk 0013706]: [patch] SIP_NOTIFY message incorrectly builds address in the To: tag

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 22 09:57:49 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13706 
====================================================================== 
Reported By:                andrew53
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   13706
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 149593 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-15 11:13 CDT
Last Modified:              2008-10-22 09:57 CDT
====================================================================== 
Summary:                    [patch] SIP_NOTIFY message incorrectly builds
address in the To: tag
Description: 
Result of strncasecmp is misinterpreted, which results in either forming
address with no "sip:" prefix, or with the prefix repeated.

If the SUBSCRIBE From: tag was user at domain, it will result in 
To: <user at domain....
If the SUBSCRIBE From: tag was sip:user at domain, it will result in
To: <sip:sip:user at domain...
====================================================================== 

---------------------------------------------------------------------- 
 (0094134) svnbot (reporter) - 2008-10-22 09:57
 http://bugs.digium.com/view.php?id=13706#c94134 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 151512

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r151512 | mmichelson | 2008-10-22 09:57:48 -0500 (Wed, 22 Oct 2008) | 8
lines

The logic of a strncasecmp call was reversed.

(closes issue http://bugs.digium.com/view.php?id=13706)
Reported by: andrew53
Patches:
      sip_notify_from_rfc3265.patch uploaded by andrew53 (license 519)


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=151512 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-22 09:57 svnbot         Checkin                                      
2008-10-22 09:57 svnbot         Note Added: 0094134                          
======================================================================




More information about the asterisk-bugs mailing list