From 050dcab0ad4180adb993c952a8721b8ee388172a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 27 Oct 2008 17:14:55 +0000 Subject: [PATCH] fix park flag git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10174 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)