From: Olle Johansson Date: Tue, 18 Dec 2007 21:13:28 +0000 (+0000) Subject: Move some warnings away to debug since some devices send a packet with a silly X-Git-Tag: 1.6.0-beta1~3^2~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4645420981afa38d3d958c9b604d0440908bd94a;p=thirdparty%2Fasterisk.git Move some warnings away to debug since some devices send a packet with a silly string as a NAT keepalive packet. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93741 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8a6484a1fa..023922fea1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7575,7 +7575,7 @@ static int determine_firstline_parts(struct sip_request *req) 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 @@ static int determine_firstline_parts(struct sip_request *req) *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; } }