[asterisk-commits] oej: branch oej/obproxy r119468 - /team/oej/obproxy/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 31 06:11:11 CDT 2008


Author: oej
Date: Sat May 31 06:11:08 2008
New Revision: 119468

URL: http://svn.digium.com/view/asterisk?view=rev&rev=119468
Log:
Set the default port if not set

Modified:
    team/oej/obproxy/channels/chan_sip.c

Modified: team/oej/obproxy/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/obproxy/channels/chan_sip.c?view=diff&rev=119468&r1=119467&r2=119468
==============================================================================
--- team/oej/obproxy/channels/chan_sip.c (original)
+++ team/oej/obproxy/channels/chan_sip.c Sat May 31 06:11:08 2008
@@ -1711,6 +1711,8 @@
 	ast_copy_string(proxy->name, name, sizeof(proxy->name));
 	if (!ast_strlen_zero(port))
 		proxy->ip.sin_port = htons(atoi(port));
+	else
+		proxy->ip.sin_port = htons(STANDARD_SIP_PORT);
 	proxy_update(proxy);
 	return proxy;
 }




More information about the asterisk-commits mailing list