Take out some debugging
authorMark Spencer <markster@digium.com>
Tue, 12 Aug 2003 16:51:44 +0000 (16:51 +0000)
committerMark Spencer <markster@digium.com>
Tue, 12 Aug 2003 16:51:44 +0000 (16:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1299 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index 3004be7..34b1d48 100755 (executable)
--- a/rtp.c
+++ b/rtp.c
@@ -319,7 +319,8 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp)
                        ast_log(LOG_DEBUG, "RTP NAT: Using address %s:%d\n", inet_ntoa(rtp->rtcp->them.sin_addr), ntohs(rtp->rtcp->them.sin_port));
                }
        }
-       ast_log(LOG_DEBUG, "Got RTCP report of %d bytes\n", res);
+       if (option_debug)
+               ast_log(LOG_DEBUG, "Got RTCP report of %d bytes\n", res);
        return &null_frame;
 }