[asterisk-commits] qwell: branch 10-digiumphones r365009 - /branches/10-digiumphones/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 2 10:57:44 CDT 2012


Author: qwell
Date: Wed May  2 10:57:39 2012
New Revision: 365009

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=365009
Log:
Save the address on which a MESSAGE was received, so it can be used in MESSAGE()

This is useful in cases where chan_sip may be listening on multiple addresses.

(issue DPMA-127)

Modified:
    branches/10-digiumphones/channels/chan_sip.c

Modified: branches/10-digiumphones/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/10-digiumphones/channels/chan_sip.c?view=diff&rev=365009&r1=365008&r2=365009
==============================================================================
--- branches/10-digiumphones/channels/chan_sip.c (original)
+++ branches/10-digiumphones/channels/chan_sip.c Wed May  2 10:57:39 2012
@@ -17002,6 +17002,7 @@
 	res |= ast_msg_set_body(msg, "%s", ast_str_buffer(buf));
 	res |= ast_msg_set_context(msg, "%s", p->context);
 
+	res |= ast_msg_set_var(msg, "SIP_RECVADDR", ast_sockaddr_stringify(&p->recv));
 	if (!ast_strlen_zero(p->peername)) {
 		res |= ast_msg_set_var(msg, "SIP_PEERNAME", p->peername);
 	}




More information about the asterisk-commits mailing list