diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-17 23:46:54 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-17 23:46:54 +0000 |
commit | 17b6891bd8ab6a01a6cfd0d161a04764ca148f87 (patch) | |
tree | 25f6c1ed29113bcab4c395532cdf5be0fdd1ad92 /channels/chan_iax.c | |
parent | dca40aaf8d35499bdd621495b6b1b6b0ed1649c8 (diff) |
We have to hangup the bridge not continue on AbsoluteTimeout
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1760 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax.c')
-rwxr-xr-x | channels/chan_iax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax.c b/channels/chan_iax.c index 96380c004..39515dbb8 100755 --- a/channels/chan_iax.c +++ b/channels/chan_iax.c @@ -1918,7 +1918,7 @@ static int iax_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_channel *cs[3]; struct ast_channel *who; int to = -1; - int res; + int res = -1; int transferstarted=0; struct ast_frame *f; struct chan_iax_pvt *p0 = c0->pvt->pvt; @@ -1963,7 +1963,7 @@ static int iax_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, who = ast_waitfor_n(cs, 2, &to); if (!who) { if (ast_check_hangup(c0) || ast_check_hangup(c1)) { - res = 0; + res = -1; break; } continue; |