Fixed SendMessage stripping extension from To: header in SIP MESSAGE
authorMatthew Jordan <mjordan@digium.com>
Wed, 23 Nov 2011 16:23:34 +0000 (16:23 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 23 Nov 2011 16:23:34 +0000 (16:23 +0000)
commit76394a727f5b18fbb0506ddcecfa6494d7cff31c
tree351c44cf2839189e561ef610278ef1f2d67c92e3
parent6d05a31d9fb890d75acd93a9c8c7e3eaa0bc22e5
Fixed SendMessage stripping extension from To: header in SIP MESSAGE

When using the MessageSend application to send a SIP MESSAGE to a non-peer,
chan_sip attempted to validate the hostname or IP Address.  In the process,
it stripped off the extension and failed to add it back to the sip_pvt
structure before transmitting.  This patch adds the full URI passed in
from the message core to the sip_pvt structure.

(closes issue ASTERISK-18903)
Reported by: Shaun Clark
Tested by: Matt Jordan

Review: https://reviewboard.asterisk.org/r/1597/
........

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

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