[asterisk-commits] oej: branch oej/oolong-path-support-1.8 r379999 - /team/oej/oolong-path-suppo...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 23 03:08:07 CST 2013


Author: oej
Date: Wed Jan 23 03:08:03 2013
New Revision: 379999

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379999
Log:
Trying to fix routing of SIP OPTIONS messages to follow the path header even in 1.8

Modified:
    team/oej/oolong-path-support-1.8/channels/chan_sip.c

Modified: team/oej/oolong-path-support-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/oolong-path-support-1.8/channels/chan_sip.c?view=diff&rev=379999&r1=379998&r2=379999
==============================================================================
--- team/oej/oolong-path-support-1.8/channels/chan_sip.c (original)
+++ team/oej/oolong-path-support-1.8/channels/chan_sip.c Wed Jan 23 03:08:03 2013
@@ -27134,6 +27134,10 @@
 	ast_copy_flags(&p->flags[1], &peer->flags[1], SIP_PAGE2_FLAGS_TO_COPY);
 	ast_copy_flags(&p->flags[2], &peer->flags[2], SIP_PAGE3_FLAGS_TO_COPY);
 	copy_route(&p->route, peer->path);
+	if (p->route) {
+		/* Parse SIP URI of first route-set hop and use it as target address */
+		__set_address_from_contact(p->route->hop, &p->sa, p->socket.type == SIP_TRANSPORT_TLS ? 1 : 0);	
+	}
 
 	/* Send OPTIONs to peer's fullcontact */
 	if (!ast_strlen_zero(peer->fullcontact)) {




More information about the asterisk-commits mailing list