From: Joshua Colp Date: Wed, 15 Nov 2006 00:14:07 +0000 (+0000) Subject: Turn notice about unknown RTCP packet type into a debug message instead. X-Git-Tag: 1.4.0-beta4~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=708b84da2f2ed595a675c4889ed10a8ef9ba718b;p=thirdparty%2Fasterisk.git Turn notice about unknown RTCP packet type into a debug message instead. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47639 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/rtp.c b/main/rtp.c index cec9922fde..a9648274d9 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -899,7 +899,8 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp) ast_verbose("Received a BYE from %s:%d\n", ast_inet_ntoa(rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port)); break; default: - ast_log(LOG_NOTICE, "Unknown RTCP packet (pt=%d) received from %s:%d\n", pt, ast_inet_ntoa(rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port)); + if (option_debug) + ast_log(LOG_DEBUG, "Unknown RTCP packet (pt=%d) received from %s:%d\n", pt, ast_inet_ntoa(rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port)); break; } position += (length + 1);