diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 3305f977fd..0b22e7605b 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1711,8 +1711,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_generate_xml_cdr(switch_core_session_ SWITCH_DECLARE(void) switch_ivr_park_session(switch_core_session_t *session) { switch_channel_t *channel = switch_core_session_get_channel(session); - switch_channel_set_state_flag(channel, CF_TRANSFER); switch_channel_set_state(channel, CS_PARK); + switch_channel_set_flag(channel, CF_TRANSFER); + } SWITCH_DECLARE(void) switch_ivr_delay_echo(switch_core_session_t *session, uint32_t delay_ms)