[asterisk-commits] bbryant: trunk r124024 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 19 13:57:05 CDT 2008


Author: bbryant
Date: Thu Jun 19 13:57:04 2008
New Revision: 124024

URL: http://svn.digium.com/view/asterisk?view=rev&rev=124024
Log:
Fix bug in sip registration that sets the default port to 5060 for tls.

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=124024&r1=124023&r2=124024
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jun 19 13:57:04 2008
@@ -6397,6 +6397,9 @@
 			ast_log(LOG_WARNING, "%s is not a valid port number at line %d\n", porta, lineno);
 			return -1;
 		}
+	} else {
+		portnum = (transport == SIP_TRANSPORT_TLS) ?
+			STANDARD_TLS_PORT : STANDARD_SIP_PORT;
 	}
 	if (!(reg = ast_calloc(1, sizeof(*reg)))) {
 		ast_log(LOG_ERROR, "Out of memory. Can't allocate SIP registry entry\n");




More information about the asterisk-commits mailing list