[asterisk-commits] jrose: trunk r382746 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 8 14:26:06 CST 2013
Author: jrose
Date: Fri Mar 8 14:26:03 2013
New Revision: 382746
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382746
Log:
chan_sip: Update the via header when relaying SMS MESSAGE
Prior to this change, certain conditions for sending the message would
result in an address of '(null)' being used in the via header of the
SIP message because a NULl value of pvt->ourip was used when initially
generating the via header. This is fixed by adding a call to build_via
when the address is set before sending the message.
(closes issue ASTERISK-21148)
Reported by: Zhi Cheng
Patches:
700-sip_msg_send_via_fix.patch uploaded by Zhi Cheng (license 6475)
........
Merged revisions 382739 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=382746&r1=382745&r2=382746
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Mar 8 14:26:03 2013
@@ -27081,6 +27081,7 @@
ast_string_field_set(pvt, username, to_user);
}
ast_sip_ouraddrfor(&pvt->sa, &pvt->ourip, pvt);
+ build_via(pvt);
ast_set_flag(&pvt->flags[0], SIP_OUTGOING);
/* XXX Does pvt->expiry need to be set? */
More information about the asterisk-commits
mailing list