diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-30 14:57:06 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-30 14:57:06 +0000 |
commit | 48e444da013988e758aa203021f3e78847170691 (patch) | |
tree | 2960c612106df1633f461a02eb85be8d26e9bfe5 /main | |
parent | 458e89f6479fce3466cb9f1d55e2119d3517d0c6 (diff) |
Only feed a DTMF frame into the core if we need to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41338 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rtp.c b/main/rtp.c index 8631a4d77..5703d7140 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -980,7 +980,7 @@ static int bridge_p2p_rtp_write(struct ast_rtp *rtp, unsigned int *rtpheader, in rtpPT = ast_rtp_lookup_pt(rtp, payload); /* If the payload is DTMF, and we are listening for DTMF - then feed it into the core */ - if (!rtpPT.isAstFormat && rtpPT.code == AST_RTP_DTMF) + if (ast_test_flag(rtp, FLAG_P2P_NEED_DTMF) && !rtpPT.isAstFormat && rtpPT.code == AST_RTP_DTMF) return -1; /* Otherwise adjust bridged payload to match */ |