aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-14 17:02:20 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-14 17:02:20 +0000
commit8dd051949d230cb322c858ec5f841e02c0ef5355 (patch)
tree8676e4a61c82c8a223d1c42fcd7066b173f3a1b3 /channel.c
parent9521172e85c010f6fdffc3a55fefb2cce518c843 (diff)
Make sure when the timeout occurs that we actually break the bridge (bug #5252)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/channel.c b/channel.c
index 61562f703..8e38d3588 100755
--- a/channel.c
+++ b/channel.c
@@ -2974,12 +2974,16 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct
}
who = ast_waitfor_n(cs, 2, &toms);
if (!who) {
+ if (!toms) {
+ res = AST_BRIDGE_RETRY;
+ break;
+ }
ast_log(LOG_DEBUG, "Nobody there, continuing...\n");
if (c0->_softhangup == AST_SOFTHANGUP_UNBRIDGE || c1->_softhangup == AST_SOFTHANGUP_UNBRIDGE) {
if (c0->_softhangup == AST_SOFTHANGUP_UNBRIDGE)
- c0->_softhangup = 0;
- if (c1->_softhangup == AST_SOFTHANGUP_UNBRIDGE)
- c1->_softhangup = 0;
+ c0->_softhangup = 0;
+ if (c1->_softhangup == AST_SOFTHANGUP_UNBRIDGE)
+ c1->_softhangup = 0;
c0->_bridge = c1;
c1->_bridge = c0;
}
@@ -3215,7 +3219,8 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha
ast_clear_flag(c0, AST_FLAG_NBRIDGE);
ast_clear_flag(c1, AST_FLAG_NBRIDGE);
}
-
+ if (res == AST_BRIDGE_RETRY)
+ continue;
switch (res) {
case AST_BRIDGE_RETRY:
/* continue; */