From ec8d21a7dbc58a92940340d93417afcec4c25839 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 31 Oct 2007 23:19:30 +0000 Subject: [PATCH] move set git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6116 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 636830ece5..7c91866c35 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -417,12 +417,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_park(switch_core_session_t *session, switch_channel_pre_answer(channel); } + switch_channel_set_flag(channel, CF_CONTROLLED); if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_PARK) == SWITCH_STATUS_SUCCESS) { switch_channel_event_set_data(channel, event); switch_event_fire(&event); } - switch_channel_set_flag(channel, CF_CONTROLLED); while (switch_channel_ready(channel) && switch_channel_test_flag(channel, CF_CONTROLLED)) { if ((status = switch_core_session_read_frame(session, &read_frame, -1, stream_id)) == SWITCH_STATUS_SUCCESS) {