aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-30 16:13:39 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-30 16:13:39 +0000
commit92a6b090ceae45cadf0f875c994bc897f8efe822 (patch)
tree2e470feaaff3a8ea80a2332310c1aa3f6f637c44 /res/res_features.c
parentf505b25616eb4cef63b08a407940516eee1ea29f (diff)
Add two more checks before printing out a warning message about bridging. If either channel has hungup of course the bridge will have failed.
(closes issue #10009) Reported by: dimas git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87571 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r--res/res_features.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 50687cb04..1aa1b8021 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1463,8 +1463,8 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
}
}
if (res < 0) {
- if (!ast_test_flag(chan, AST_FLAG_ZOMBIE) && !ast_test_flag(peer, AST_FLAG_ZOMBIE))
- ast_log(LOG_WARNING, "Bridge failed on channels %s and %s, res = %d\n", chan->name, peer->name, res);
+ if (!ast_test_flag(chan, AST_FLAG_ZOMBIE) && !ast_test_flag(peer, AST_FLAG_ZOMBIE) && !ast_check_hangup(chan) && !ast_check_hangup(peer))
+ ast_log(LOG_WARNING, "Bridge failed on channels %s and %s\n", chan->name, peer->name);
return -1;
}