[asterisk-commits] oej: branch oej/oolong-path-support-11 r380450 - /team/oej/oolong-path-suppor...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 30 06:51:20 CST 2013
Author: oej
Date: Wed Jan 30 06:51:16 2013
New Revision: 380450
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380450
Log:
Make sure OPTIONs requests use path too.
Modified:
team/oej/oolong-path-support-11/channels/chan_sip.c
Modified: team/oej/oolong-path-support-11/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/oolong-path-support-11/channels/chan_sip.c?view=diff&rev=380450&r1=380449&r2=380450
==============================================================================
--- team/oej/oolong-path-support-11/channels/chan_sip.c (original)
+++ team/oej/oolong-path-support-11/channels/chan_sip.c Wed Jan 30 06:51:16 2013
@@ -29427,6 +29427,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