]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Update SIP MESSAGE To parsing to correctly handle URI
authorMatthew Jordan <mjordan@digium.com>
Fri, 2 Dec 2011 23:27:10 +0000 (23:27 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 2 Dec 2011 23:27:10 +0000 (23:27 +0000)
commit058a8177e44989b531445826e30500a8e2316a50
tree9163fc92cc047cd580d3dd1cf01fd7047efa046c
parent2ff29060113428beca6b4cf72d05bb69cc64c928
Update SIP MESSAGE To parsing to correctly handle URI

The previous patch (r346040) incorrectly parsed the URI in the presence
of a port, e.g., user@hostname:port would fail as the port would be
double appended to the SIP message.  This patch uses the parse_uri function
to correctly parse the URI into its username and hostname parts, and places
them in the correct fields in the sip_pvt structure.

(issue ASTERISK-18903)
Review: https://reviewboard.asterisk.org/r/1597/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@346856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c