Update SIP MESSAGE To parsing to correctly handle URI
authorMatthew Jordan <mjordan@digium.com>
Fri, 2 Dec 2011 23:30:21 +0000 (23:30 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 2 Dec 2011 23:30:21 +0000 (23:30 +0000)
commitfa4a7dcc45c92c799a012cd223232836c3fecd1a
treed2d643cc9f84ccb958e008edef5c5da0b2e79b1a
parentfa116b5e68385e5aaf328bc2813c10e0f1b5dd01
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/
........

Merged revisions 346856 from http://svn.asterisk.org/svn/asterisk/branches/10

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