From 708b84da2f2ed595a675c4889ed10a8ef9ba718b Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 15 Nov 2006 00:14:07 +0000 Subject: [PATCH] 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 --- main/rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);