pre_answer instead of answer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7229 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-01-14 23:32:21 +00:00
parent 3e8f3ae5d8
commit 12b68bf47c
1 changed files with 2 additions and 2 deletions

View File

@ -375,7 +375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
return SWITCH_STATUS_GENERR;
}
switch_channel_answer(channel);
switch_channel_pre_answer(channel);
if ((p = switch_channel_get_variable(channel, "RECORD_TITLE"))) {
vval = switch_core_session_strdup(session, p);
@ -1588,7 +1588,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_speak_text(switch_core_session_t *ses
switch_core_speech_text_param_tts(sh, "voice", voice_name);
}
switch_channel_answer(channel);
switch_channel_pre_answer(channel);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "OPEN TTS %s\n", tts_name);