mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 20:56:39 +00:00
Only feed a DTMF frame into the core if we need to
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
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 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;
|
return -1;
|
||||||
|
|
||||||
/* Otherwise adjust bridged payload to match */
|
/* Otherwise adjust bridged payload to match */
|
||||||
|
Reference in New Issue
Block a user