[asterisk-commits] bbryant: branch bbryant/ssl-tcp-tls r70655 - /team/bbryant/ssl-tcp-tls/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 21 03:59:13 CDT 2007


Author: bbryant
Date: Thu Jun 21 03:59:12 2007
New Revision: 70655

URL: http://svn.digium.com/view/asterisk?view=rev&rev=70655
Log:
Remove some debug junk.

Modified:
    team/bbryant/ssl-tcp-tls/channels/chan_sip.c

Modified: team/bbryant/ssl-tcp-tls/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/bbryant/ssl-tcp-tls/channels/chan_sip.c?view=diff&rev=70655&r1=70654&r2=70655
==============================================================================
--- team/bbryant/ssl-tcp-tls/channels/chan_sip.c (original)
+++ team/bbryant/ssl-tcp-tls/channels/chan_sip.c Thu Jun 21 03:59:12 2007
@@ -1715,7 +1715,7 @@
 static void *sip_tcp_helper_thread(void *data) {
 	struct sip_pvt *p;
 	struct server_instance *ser = data;
-	int lockretry, i, j, nounlock;
+	int lockretry, nounlock;
 	char buf[1024];
 	struct sip_request req = { 0, };
 
@@ -1756,20 +1756,7 @@
 			p = find_call(&req, &ser->requestor, req.method);	/* returns p locked */
 
 			if (p == NULL) {
-				ast_debug(1, "Invalid SIP message - rejected , no callid, len %d\n", req.len);
-
-				for(i=0;i<req.len;i+=16) {
-					char tmp[17];
-					bzero(tmp, sizeof(tmp));
-
-					for(j=i;j<i+16 && j < req.len;j++) {
-						printf("0x%02x ", req.data[j]);
-						tmp[j-i] = req.data[j];
-					}
-
-					printf("%s\n", tmp);
-				}			
-
+				ast_debug(1, "Invalid SIP message - rejected , no callid, len %d\n", req.len);	
 				ast_mutex_unlock(&netlock);
 				return NULL;
 			}




More information about the asterisk-commits mailing list