提交 12b68bf4 authored 作者: Anthony Minessale's avatar Anthony Minessale

pre_answer instead of answer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7229 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 3e8f3ae5
...@@ -375,7 +375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se ...@@ -375,7 +375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
switch_channel_answer(channel); switch_channel_pre_answer(channel);
if ((p = switch_channel_get_variable(channel, "RECORD_TITLE"))) { if ((p = switch_channel_get_variable(channel, "RECORD_TITLE"))) {
vval = switch_core_session_strdup(session, p); 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 ...@@ -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_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); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "OPEN TTS %s\n", tts_name);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论