]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 26 Oct 2006 15:52:11 +0000 (15:52 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 26 Oct 2006 15:52:11 +0000 (15:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3211 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 2eec41403d24f3cb00329786f59c98a59956ad6e..7e7e3296f45ca3a7bf8ee78b88e6a60649b08194 100644 (file)
@@ -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;
                }