diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 0ecc89c..a431625 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -941,9 +941,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_displace_session(switch_core_session_ file, read_impl.number_of_channels, read_impl.actual_samples_per_second, SWITCH_FILE_FLAG_READ | SWITCH_FILE_DATA_SHORT, NULL) != SWITCH_STATUS_SUCCESS) { - switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER); - switch_core_session_reset(session, SWITCH_TRUE, SWITCH_TRUE); - return SWITCH_STATUS_GENERR; + switch_core_session_reset(session, SWITCH_TRUE, SWITCH_FALSE); + return SWITCH_STATUS_NOTFOUND; } if (limit) {