[asterisk-commits] oej: trunk r54372 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Feb 14 09:20:49 MST 2007


Author: oej
Date: Wed Feb 14 10:20:48 2007
New Revision: 54372

URL: http://svn.digium.com/view/asterisk?view=rev&rev=54372
Log:
Issue #9060 - host= parameter in sip.conf stopped working
caused by outbound proxy patch.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=54372&r1=54371&r2=54372
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Feb 14 10:20:48 2007
@@ -16261,6 +16261,11 @@
 					ast_sched_del(sched, peer->expire);
 				peer->expire = -1;
 				ast_clear_flag(&peer->flags[1], SIP_PAGE2_DYNAMIC);
+				if (ast_get_ip_or_srv(&peer->addr, v->value, global_srvlookup ? "_sip._udp" : NULL)) {
+					unref_peer(peer);
+					return NULL;
+				}
+
 				ast_copy_string(peer->tohost, v->value, sizeof(peer->tohost));
 				if (!peer->addr.sin_port)
 					peer->addr.sin_port = htons(STANDARD_SIP_PORT);



More information about the asterisk-commits mailing list