diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-08 15:05:05 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-08 15:05:05 +0000 |
commit | 5b83da2b789e7d002f43434bf77651344d3f57b7 (patch) | |
tree | b5bb768b1481946ce0f6b1eeaa40ee0c8dc711a9 /main | |
parent | 0ed805dce6861346fd002c3a2f4f4a39527d1b40 (diff) |
Merged revisions 84990 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84990 | file | 2007-10-08 12:03:07 -0300 (Mon, 08 Oct 2007) | 4 lines
Don't keep trying to native bridge if either of the channels are involved in a masquerade operation to be done.
(closes issue #10696)
Reported by: tbelder
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84991 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 1976e111a..9d8fd0dd1 100644 --- a/main/channel.c +++ b/main/channel.c @@ -4166,7 +4166,8 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha !nativefailed && !c0->monitor && !c1->monitor && !c0->audiohooks && !c1->audiohooks && !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); |