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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 21 17:57:24 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-08-03 07:21 CDT
Last Modified:              2010-09-21 17:57 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".

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

---------------------------------------------------------------------- 
 (0127256) svnbot (reporter) - 2010-09-21 17:57
 https://issues.asterisk.org/view.php?id=17785#c127256 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 288159

_U  branches/1.8/
U   branches/1.8/channels/chan_sip.c

------------------------------------------------------------------------
r288159 | tilghman | 2010-09-21 17:57:23 -0500 (Tue, 21 Sep 2010) | 29
lines

Merged revisions 288113 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288113 | tilghman | 2010-09-21 16:59:46 -0500 (Tue, 21 Sep 2010) | 22
lines
  
  Merged revisions 288112 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    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=288159 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-21 17:57 svnbot         Checkin                                      
2010-09-21 17:57 svnbot         Note Added: 0127256                          
======================================================================




More information about the asterisk-bugs mailing list