]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Turn notice about unknown RTCP packet type into a debug message instead.
authorJoshua Colp <jcolp@digium.com>
Wed, 15 Nov 2006 00:14:07 +0000 (00:14 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 15 Nov 2006 00:14:07 +0000 (00:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47639 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index cec9922fdee14cea054bfc85164e845e2a934eea..a9648274d9391738cc0b95f8515ab910f984dfa7 100644 (file)
@@ -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);