mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 14:56:58 +00:00
Disable Packet2Packet bridging when we need to feed DTMF frames into the core. Some implementations do not like how we switch between things.
(closes issue #12212) Reported by: bamby git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@112209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3368,9 +3368,9 @@ enum ast_bridge_result ast_rtp_bridge(struct ast_channel *c0, struct ast_channel
|
|||||||
audio_p1_res = AST_RTP_TRY_PARTIAL;
|
audio_p1_res = AST_RTP_TRY_PARTIAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the core will need to compensate and the P2P bridge will need to feed up DTMF frames then we can not reliably do so yet, so do not P2P bridge */
|
/* If we need to feed frames into the core don't do a P2P bridge */
|
||||||
if ((audio_p0_res == AST_RTP_TRY_PARTIAL && ast_test_flag(p0, FLAG_P2P_NEED_DTMF) && ast_test_flag(p0, FLAG_DTMF_COMPENSATE)) ||
|
if ((audio_p0_res == AST_RTP_TRY_PARTIAL && ast_test_flag(p0, FLAG_P2P_NEED_DTMF)) ||
|
||||||
(audio_p1_res == AST_RTP_TRY_PARTIAL && ast_test_flag(p1, FLAG_P2P_NEED_DTMF) && ast_test_flag(p1, FLAG_DTMF_COMPENSATE))) {
|
(audio_p1_res == AST_RTP_TRY_PARTIAL && ast_test_flag(p1, FLAG_P2P_NEED_DTMF))) {
|
||||||
ast_channel_unlock(c0);
|
ast_channel_unlock(c0);
|
||||||
ast_channel_unlock(c1);
|
ast_channel_unlock(c1);
|
||||||
return AST_BRIDGE_FAILED_NOWARN;
|
return AST_BRIDGE_FAILED_NOWARN;
|
||||||
|
Reference in New Issue
Block a user