Drop the RTCP Read too short message to debug. There are some phones out there that...
authorJoshua Colp <jcolp@digium.com>
Mon, 29 Oct 2007 20:02:31 +0000 (20:02 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 29 Oct 2007 20:02:31 +0000 (20:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87394 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp.c

index 5b5223c..ef1cf0d 100644 (file)
@@ -1111,7 +1111,8 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
                length &= 0xffff;
     
                if ((i + length) > packetwords) {
-                       ast_log(LOG_WARNING, "RTCP Read too short\n");
+                       if (option_debug || rtpdebug)
+                               ast_log(LOG_DEBUG, "RTCP Read too short\n");
                        return &ast_null_frame;
                }