]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix park flag
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 27 Oct 2008 17:14:55 +0000 (17:14 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 27 Oct 2008 17:14:55 +0000 (17:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10174 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 3305f977fdf42dde5a0b419dda81ce2b4412c937..0b22e7605b04f83ac8183da4e640e8789d24e2f9 100644 (file)
@@ -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)