From 280daaf56c6d6c3718fb5bc127c65145315ed25a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 26 Oct 2006 15:52:11 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3211 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 2eec41403d..7e7e3296f4 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1927,7 +1927,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } if (caller_channel && !switch_channel_ready(caller_channel)) { - break; + goto notready; } if ((time(NULL) - start) > (time_t)timelimit_sec) { @@ -2011,6 +2011,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } + notready: + if (!switch_channel_ready(caller_channel)) { idx = IDX_CANCEL; }