[asterisk-commits] russell: branch bbryant/sip-tcptls r73123 - /team/bbryant/sip-tcptls/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 3 11:21:01 CDT 2007


Author: russell
Date: Tue Jul  3 11:21:00 2007
New Revision: 73123

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73123
Log:
brett says this should be removed

Modified:
    team/bbryant/sip-tcptls/channels/chan_sip.c

Modified: team/bbryant/sip-tcptls/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/bbryant/sip-tcptls/channels/chan_sip.c?view=diff&rev=73123&r1=73122&r2=73123
==============================================================================
--- team/bbryant/sip-tcptls/channels/chan_sip.c (original)
+++ team/bbryant/sip-tcptls/channels/chan_sip.c Tue Jul  3 11:21:00 2007
@@ -3362,31 +3362,6 @@
 
 		p->t38.jointcapability = p->t38.capability;
 		ast_debug(2,"Our T38 capability (%d), joint T38 capability (%d)\n", p->t38.capability, p->t38.jointcapability);
-
-		if (!(p->socket.type & SIP_TRANSPORT_UDP)) {
-			char name[256];
-			struct server_args ca;
-
-			snprintf(name, sizeof(name), "SIP Call to %s", p->peername);
-
-			ca.name = name;
-			ca.accept_fd = -1;
-			ca.tls_cfg = (p->socket.ser) ? p->socket.ser->parent->tls_cfg : NULL;
-			ca.sin = p->sa;
-			p->socket.ser = (!p->socket.ser) ? client_start(&ca) : p->socket.ser;
-
-			if (!p->socket.ser)
-				return -1;
-
-			p->socket.fd = ca.accept_fd;
-
-			if (ast_pthread_create_background(&ca.master, NULL, sip_tcp_helper_thread, p->socket.ser)) {
-				ast_debug(1, "Unable to launch '%s'.", ca.name);
-				close(ca.accept_fd);
-				p->socket.fd = ca.accept_fd = -1;
-				return -1;
-			}
-		}
 
 		xmitres = transmit_invite(p, SIP_INVITE, 1, 2);
 		if (xmitres == XMIT_ERROR)




More information about the asterisk-commits mailing list