From 90297aa7efa7479273872246793e7a3ab6510eea Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 26 Oct 2006 16:31:05 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3213 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 7e7e3296f4..257d461265 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1932,7 +1932,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess if ((time(NULL) - start) > (time_t)timelimit_sec) { to++; - break; + idx = IDX_CANCEL; + goto notready; } switch_yield(1000); } @@ -1978,7 +1979,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess check_channel_status(peer_channels, peer_sessions, and_argc, &idx, file, key)) { if ((to = (uint8_t)((time(NULL) - start) >= (time_t)timelimit_sec))) { - break; + idx = IDX_CANCEL; + goto notready; } if (session && or_argc == 1 && and_argc == 1) { /* when there is only 1 channel to call and bridge */