[asterisk-commits] jpdionne: branch group/v6-new r271202 - /team/group/v6-new/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 17 11:18:44 CDT 2010


Author: jpdionne
Date: Thu Jun 17 11:18:40 2010
New Revision: 271202

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=271202
Log:
Start TCP server: forgot to use sip_cfg.tcp_enabled.

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=271202&r1=271201&r2=271202
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Thu Jun 17 11:18:40 2010
@@ -26627,7 +26627,7 @@
 		ast_sockaddr_setnull(&sip_tcp_desc.local_address);
 	}
 	ast_tcptls_server_start(&sip_tcp_desc);
-	if (sip_tcp_desc.accept_fd == -1) {
+	if (sip_cfg.tcp_enabled && sip_tcp_desc.accept_fd == -1) {
 		/* TCP server start failed. Tell the admin */
 		ast_log(LOG_ERROR, "SIP TCP Server start failed. Not listening on TCP socket.\n");
 	} else {




More information about the asterisk-commits mailing list