We have to hangup the bridge not continue on AbsoluteTimeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
bb2bb1d083
commit
e30e685ee1
|
@ -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;
|
||||
|
|
|
@ -2042,7 +2042,7 @@ static int iax2_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;
|
||||
|
|
Loading…
Reference in New Issue