diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-27 17:02:12 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-27 17:02:12 +0000 |
commit | c2f3b48b643a3ba37c05f17be5133a8ccf7ad033 (patch) | |
tree | 8bd92c98a27f1cc0da4f0de840fe4b66b34283ff /channel.c | |
parent | 8bc90f4489d202be55ada37b5674775b2a15f471 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@43791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -3351,7 +3351,7 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct if (bridge_end.tv_sec) { to = ast_tvdiff_ms(bridge_end, ast_tvnow()); if (to <= 0) { - res = AST_BRIDGE_RETRY; + res = AST_BRIDGE_COMPLETE; break; } } else @@ -3510,8 +3510,10 @@ enum ast_bridge_result ast_channel_bridge(struct ast_channel *c0, struct ast_cha if (!ast_tvzero(nexteventts)) { now = ast_tvnow(); to = ast_tvdiff_ms(nexteventts, now); - if (to < 0) - to = 0; + if (to <= 0) { + res = AST_BRIDGE_COMPLETE; + break; + } } if (config->timelimit) { |