Merged revisions 47639 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 15 Nov 2006 00:15:38 +0000 (00:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 15 Nov 2006 00:15:38 +0000 (00:15 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47639 | file | 2006-11-14 19:14:07 -0500 (Tue, 14 Nov 2006) | 2 lines

Turn notice about unknown RTCP packet type into a debug message instead.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47640 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index a51165c..4153273 100644 (file)
@@ -949,7 +949,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);