[asterisk-commits] oej: trunk r93741 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 18 15:13:30 CST 2007


Author: oej
Date: Tue Dec 18 15:13:28 2007
New Revision: 93741

URL: http://svn.digium.com/view/asterisk?view=rev&rev=93741
Log:
Move some warnings away to debug since some devices send a packet with a silly
string as a NAT keepalive packet.

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=93741&r1=93740&r2=93741
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Dec 18 15:13:28 2007
@@ -7575,7 +7575,7 @@
 		req->rlPart2 = e;
 	} else { /* We have a request */
 		if ( *e == '<' ) { /* XXX the spec says it must not be in <> ! */
-			ast_log(LOG_WARNING, "bogus uri in <> %s\n", e);
+			ast_debug(3, "Oops. Bogus uri in <> %s\n", e);
 			e++;
 			if (!*e)
 				return -1; 
@@ -7586,7 +7586,7 @@
 			*e++ = '\0';
 		e = ast_skip_blanks(e);
 		if (strcasecmp(e, "SIP/2.0") ) {
-			ast_log(LOG_WARNING, "Bad request protocol %s\n", e);
+			ast_debug(3, "Skipping packet - Bad request protocol %s\n", e);
 			return -1;
 		}
 	}




More information about the asterisk-commits mailing list