[asterisk-bugs] [Asterisk 0017785]: [patch] Encoded URI in a subscription does not work

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 21 16:58:15 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17785 
====================================================================== 
Reported By:                ramonpeek
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17785
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Target Version:             1.4.38
Asterisk Version:           SVN 
JIRA:                       SWP-1997 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-03 07:21 CDT
Last Modified:              2010-09-21 16:58 CDT
====================================================================== 
Summary:                    [patch] Encoded URI in a subscription does not work
Description: 
When a phone sends an encoded URI for an subscription the URI is not
matched with the actual hint that is in decoded format.
For example if I have an extension with a hint that is named:
"https://issues.asterisk.org/view.php?id=5601" or
"*5601".
The subscription will work fine if the phone subscribes with an already
decoded URI, but when its decoded like "%255601" or "%2A5601" asterisk is
unable to match it with the correct hint.

Note: In the setup the option pedantic checking was set to "yes".

====================================================================== 

---------------------------------------------------------------------- 
 (0127244) svnbot (reporter) - 2010-09-21 16:58
 https://issues.asterisk.org/view.php?id=17785#c127244 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 288112

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r288112 | tilghman | 2010-09-21 16:58:13 -0500 (Tue, 21 Sep 2010) | 15
lines

Try both the encoded and unencoded subscription URI for a match in hints.

When a phone sends an encoded URI for a subscription, the URI is not
matched
with the actual hint that is in decoded format.  For example, if we have
an
extension with a hint that is named:
"https://issues.asterisk.org/view.php?id=5601" or "*5601", the subscription
will
work fine if the phone subscribes with an already decoded URI, but when
it's
decoded like "%255601" or "%2A5601", Asterisk is unable to match it with
the
correct hint.

(closes issue https://issues.asterisk.org/view.php?id=17785)
 Reported by: ramonpeek
 Patches: 
       20100831__issue17785.diff.txt uploaded by tilghman (license 14)
 Tested by: ramonpeek

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-21 16:58 svnbot         Checkin                                      
2010-09-21 16:58 svnbot         Note Added: 0127244                          
======================================================================




More information about the asterisk-bugs mailing list