[svn-commits] file: trunk r64274 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon May 14 11:21:30 MST 2007


Author: file
Date: Mon May 14 13:21:30 2007
New Revision: 64274

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64274
Log:
If no port is specified in the outboundproxy setting then use the standard SIP port. (issue #9665 reported by tootai)

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=64274&r1=64273&r2=64274
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon May 14 13:21:30 2007
@@ -1772,8 +1772,7 @@
 		return NULL;
 	proxy->force = force;
 	ast_copy_string(proxy->name, name, sizeof(proxy->name));
-	if (!ast_strlen_zero(port))
-		proxy->ip.sin_port = htons(atoi(port));
+	proxy->ip.sin_port = htons((!ast_strlen_zero(port) ? atoi(port) : STANDARD_SIP_PORT));
 	proxy_update(proxy);
 	return proxy;
 }



More information about the svn-commits mailing list