FS-5997 regression from commit 70accd9f27 this caused some attended transfers to calls with multiple targets to get the abondoned channels to be stuck on write lock

This commit is contained in:
Anthony Minessale 2014-04-17 02:41:40 +05:00
parent 56e5a9ce8e
commit 264fd6ffcc
1 changed files with 1 additions and 2 deletions

View 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;