[asterisk-bugs] [JIRA] (ASTERISK-15521) SIP URIs are not always parsed correctly

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Feb 25 20:23:34 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-15521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225134#comment-225134 ] 

Matt Jordan commented on ASTERISK-15521:
----------------------------------------

I know this issue was filed a long time ago, but without a patch, I would not expect parsing of various headers to be changed unless there is an actual bug with the parsing of that header. 

Note that there have been improvements in some URI parsing within Asterisk's {{chan_sip}}. Without an actual patch that can be looked at and compared to a currently supported branch, this is really an improvement request without a patch.

As such, I'm going to close it out as "Suspended". If someone would like to improve any of the URI handling in {{chan_sip}}, commenting on this issue and providing a patch would certainly be appreciated.

> SIP URIs are not always parsed correctly
> ----------------------------------------
>
>                 Key: ASTERISK-15521
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-15521
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Channels/chan_sip/Interoperability
>            Reporter: nick_lewis
>            Severity: Minor
>
> There are many sip headers containing uris that chan_sip.c does not parse correctly. There is already a function parse_uri that does correctly parse uris but for many headers it is not used. 
> ****** ADDITIONAL INFORMATION ******
> Examples of headers that could benefit from parse_uri are:
> "p-asserted-id", "remote-party-id", "diversion", "refer-to", "referred-by", "also"
> Also some headers do make use of parse_uri in some sip methods but not others. Examples include the request-line the to-header and the from-header
> There are even examples of some parts of uris being got with parse_uri will other parts are got using incorrect code such as in the get_domain function



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list