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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Feb 11 13:04:50 MST 2007


Author: oej
Date: Sun Feb 11 14:04:49 2007
New Revision: 53933

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53933
Log:
Small fix in outbound proxy support.

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=53933&r1=53932&r2=53933
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Feb 11 14:04:49 2007
@@ -2939,6 +2939,8 @@
 		return res;
 	}
 
+	ast_string_field_set(dialog, tohost, peername);
+
 	/* Get the outbound proxy information */
 	dialog->outboundproxy = obproxy_get(dialog, NULL);
 
@@ -2968,7 +2970,6 @@
 		ast_log(LOG_WARNING, "No such host: %s\n", peername);
 		return -1;
 	}
-	ast_string_field_set(dialog, tohost, peername);
 	memcpy(&dialog->sa.sin_addr, hp->h_addr, sizeof(dialog->sa.sin_addr));
 	dialog->sa.sin_port = htons(portno);
 	dialog->recv = dialog->sa;



More information about the asterisk-commits mailing list