]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5997 regression from commit 70accd9f272472ac2081283f1927d901b409acb6 this caused...
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 16 Apr 2014 21:41:40 +0000 (02:41 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 16 Apr 2014 21:42:08 +0000 (02:42 +0500)
src/switch_ivr_originate.c

index 3bd05f7711a883014bebd2c498e18c0f62f4996c..93adcfc5ff08b52f16166522554d7751dfdb19fa 100644 (file)
@@ -3651,7 +3651,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        if (oglobals.idx == IDX_XFER) {
                                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(oglobals.session), SWITCH_LOG_DEBUG,
                                                                                  "Originate Resulted in Attended Transfer Cause: %d [%s]\n", *cause, switch_channel_cause2str(*cause));
-                                               goto outer_for;
                                        } else {
 
                                                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(oglobals.session), SWITCH_LOG_DEBUG,
@@ -3750,7 +3749,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                switch_core_session_rwunlock(originate_status[i].peer_session);
                        }
 
-                       if (status == SWITCH_STATUS_SUCCESS) {
+                       if (status == SWITCH_STATUS_SUCCESS || oglobals.idx == IDX_XFER) {
                                goto outer_for;
                        } else {
                                int ok = 1;