]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't keep trying to native bridge if either of the channels are involved in a masque...
authorJoshua Colp <jcolp@digium.com>
Mon, 8 Oct 2007 15:03:07 +0000 (15:03 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 8 Oct 2007 15:03:07 +0000 (15:03 +0000)
(closes issue #10696)
Reported by: tbelder

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84990 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 0b7fe4027d5e1bb2e3deebfb514d35d9eab3fe46..68bc047c402348a2aca88a17f1d08ed44bf69a41 100644 (file)
@@ -4270,7 +4270,8 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
                    (c0->tech->bridge == c1->tech->bridge) &&
                    !nativefailed && !c0->monitor && !c1->monitor &&
                    !c0->spies && !c1->spies && !ast_test_flag(&(config->features_callee),AST_FEATURE_REDIRECT) &&
-                   !ast_test_flag(&(config->features_caller),AST_FEATURE_REDIRECT) ) {
+                   !ast_test_flag(&(config->features_caller),AST_FEATURE_REDIRECT) &&
+                   !c0->masq && !c0->masqr && !c1->masq && !c1->masqr) {
                        /* Looks like they share a bridge method and nothing else is in the way */
                        ast_set_flag(c0, AST_FLAG_NBRIDGE);
                        ast_set_flag(c1, AST_FLAG_NBRIDGE);