提交 ea8ddfd4 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix some media issues (shoud go into the 1.0 branch)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11080 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4cc11364
......@@ -54,8 +54,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
int sval = 0;
const char *var;
if (switch_channel_media_ready(channel) && (var = switch_channel_get_variable(channel, SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE)) && (sval = atoi(var))) {
switch_channel_pre_answer(channel);
if (switch_channel_media_ready(channel) &&
(var = switch_channel_get_variable(channel, SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE)) &&
(sval = atoi(var)) && sval >= 1000) {
switch_core_session_get_read_impl(session, &imp);
if (switch_core_codec_init(&codec,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论