From eac46e9dc4d0e1a353aec09c3a11151468f5df32 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 29 Oct 2009 05:11:54 +0000 Subject: [PATCH] answer channel on record to ensure media git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15265 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_play_say.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 2819995147..57161bfb36 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -404,7 +404,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se return SWITCH_STATUS_FALSE; } - if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) { + if (switch_channel_answer(channel) != SWITCH_STATUS_SUCCESS) { return SWITCH_STATUS_FALSE; } @@ -513,10 +513,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se asis = 1; } - if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) { - return SWITCH_STATUS_FALSE; - } - if ((p = switch_channel_get_variable(channel, "RECORD_TITLE"))) { vval = switch_core_session_strdup(session, p); switch_core_file_set_string(fh, SWITCH_AUDIO_COL_STR_TITLE, vval);