aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_rtp_asterisk.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-06 23:11:13 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-06 23:11:13 +0000
commit169ee4d1c8b257c674d711a2ff2c46a79d792f67 (patch)
tree77097155c75aa41b2633500a3f1e5022c2e0c190 /res/res_rtp_asterisk.c
parentf9de0464a77ee3d40dc2c5cc733da4e75a8b44f2 (diff)
Fix a log message getting output when it should not have been.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186687 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r--res/res_rtp_asterisk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 789c3d01b..a04291bb9 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -1308,8 +1308,10 @@ static struct ast_frame *process_dtmf_rfc2833(struct ast_rtp_instance *instance,
samples = ntohl(*((unsigned int *)(data)));
samples &= 0xFFFF;
- ast_verbose("Got RTP RFC2833 from %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u, mark %d, event %08x, end %d, duration %-5.5d) \n", ast_inet_ntoa(remote_address.sin_addr),
- ntohs(remote_address.sin_port), payloadtype, seqno, timestamp, len, (mark?1:0), event, ((event_end & 0x80)?1:0), samples);
+ if (rtp_debug_test_addr(&remote_address)) {
+ ast_verbose("Got RTP RFC2833 from %s:%u (type %-2.2d, seq %-6.6u, ts %-6.6u, len %-6.6u, mark %d, event %08x, end %d, duration %-5.5d) \n", ast_inet_ntoa(remote_address.sin_addr),
+ ntohs(remote_address.sin_port), payloadtype, seqno, timestamp, len, (mark?1:0), event, ((event_end & 0x80)?1:0), samples);
+ }
/* Print out debug if turned on */
if (rtpdebug || option_debug > 2)