diff --git a/rtp.c b/rtp.c index 3004be70a78127646152362166fe0ecce03a5bd9..34b1d48fb25e37f43674978e75c2018b0c989f38 100755 --- 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; }