[asterisk-commits] file: trunk r99265 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 22 10:39:10 CST 2008


Author: file
Date: Sun Jan 20 21:54:47 2008
New Revision: 99265

URL: http://svn.digium.com/view/asterisk?view=rev&rev=99265
Log:
Change over to using ast_debug so these debug messages don't always show up.

Modified:
    trunk/channels/chan_sip.c

Change Statistics:
 trunk/channels/chan_sip.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=99265&r1=99264&r2=99265
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jan 20 21:54:47 2008
@@ -2170,7 +2170,7 @@
 		}
 		res = ast_wait_for_input(ser->fd, -1);
 		if (res < 0) {
-			ast_log(LOG_DEBUG, "ast_wait_for_input returned %d\n", res);
+			ast_debug(1, "ast_wait_for_input returned %d\n", res);
 			goto cleanup;
 		}
 
@@ -2481,7 +2481,7 @@
 	int res = 0;
 	const struct sockaddr_in *dst = sip_real_dst(p);
 
-	ast_log(LOG_DEBUG, "Trying to put '%.10s' onto %s socket...\n", data, get_transport(p->socket.type));
+	ast_debug(1, "Trying to put '%.10s' onto %s socket...\n", data, get_transport(p->socket.type));
 
 	if (sip_prepare_socket(p) < 0)
 		return XMIT_ERROR;
@@ -2495,7 +2495,7 @@
 		if (p->socket.ser->f) 
 			res = server_write(p->socket.ser, data, len);
 		else
-			ast_log(LOG_DEBUG, "No p->socket.ser->f len=%d\n", len);
+			ast_debug(1, "No p->socket.ser->f len=%d\n", len);
 	} 
 
 	if (p->socket.lock)
@@ -5800,7 +5800,7 @@
 			ast_log(LOG_WARNING, "'%s' is not a valid transport value for registration '%s' at line '%d'\n", trans, value, lineno);
 	} else {
 		username = buf;
-		ast_log(LOG_DEBUG, "no trans\n");
+		ast_debug(1, "no trans\n");
 	}
 
 	/* First split around the last '@' then parse the two components. */
@@ -17920,7 +17920,7 @@
 	s->fd = ca.accept_fd;
 
 	if (ast_pthread_create_background(&ca.master, NULL, sip_tcp_helper_thread, p)) {
-		ast_log(LOG_DEBUG, "Unable to launch '%s'.", ca.name);
+		ast_debug(1, "Unable to launch '%s'.", ca.name);
 		close(ca.accept_fd);
 		s->fd = ca.accept_fd = -1;
 	}




More information about the asterisk-commits mailing list