aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-17 23:37:56 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-11-17 23:37:56 +0000
commitdca40aaf8d35499bdd621495b6b1b6b0ed1649c8 (patch)
tree8b06ff0f1572984fde814ac9b4c884cf7857de53 /channels/chan_iax.c
parent82867922f1a83d886081073fcfcd2cf07ba88be9 (diff)
Fix the AbsoluteTimeout issue with IAX/IAX2 when in native mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1759 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax.c')
-rwxr-xr-xchannels/chan_iax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_iax.c b/channels/chan_iax.c
index 1e801abb4..96380c004 100755
--- a/channels/chan_iax.c
+++ b/channels/chan_iax.c
@@ -1962,6 +1962,10 @@ static int iax_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags,
to = 1000;
who = ast_waitfor_n(cs, 2, &to);
if (!who) {
+ if (ast_check_hangup(c0) || ast_check_hangup(c1)) {
+ res = 0;
+ break;
+ }
continue;
}
f = ast_read(who);