mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix native bridge not to intercept DTMF if it's needed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2715,8 +2715,10 @@ static int iax2_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
|
|||||||
|
|
||||||
lock_both(callno0, callno1);
|
lock_both(callno0, callno1);
|
||||||
/* Put them in native bridge mode */
|
/* Put them in native bridge mode */
|
||||||
|
if (!flags & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1)) {
|
||||||
iaxs[callno0]->bridgecallno = callno1;
|
iaxs[callno0]->bridgecallno = callno1;
|
||||||
iaxs[callno1]->bridgecallno = callno0;
|
iaxs[callno1]->bridgecallno = callno0;
|
||||||
|
}
|
||||||
unlock_both(callno0, callno1);
|
unlock_both(callno0, callno1);
|
||||||
|
|
||||||
/* If not, try to bridge until we can execute a transfer, if we can */
|
/* If not, try to bridge until we can execute a transfer, if we can */
|
||||||
|
Reference in New Issue
Block a user