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

make the core pre_answer channels when they hit an app that requires media and…

make the core pre_answer channels when they hit an app that requires media and they have not answered yet to at least establish media

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7527 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b7e34776
...@@ -156,10 +156,10 @@ static void switch_core_standard_on_execute(switch_core_session_t *session) ...@@ -156,10 +156,10 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
if (switch_channel_test_flag(session->channel, CF_BYPASS_MEDIA) && !switch_test_flag(application_interface, SAF_SUPPORT_NOMEDIA)) { if (switch_channel_test_flag(session->channel, CF_BYPASS_MEDIA) && !switch_test_flag(application_interface, SAF_SUPPORT_NOMEDIA)) {
switch_ivr_media(session->uuid_str, SMF_NONE); switch_ivr_media(session->uuid_str, SMF_NONE);
nomedia++; nomedia++;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application %s Requires media on channel %s!\n", switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Application %s Requires media on channel %s!\n",
extension->current_application->application_name, switch_channel_get_name(session->channel)); extension->current_application->application_name, switch_channel_get_name(session->channel));
} else if (!switch_channel_media_ready(session->channel)) { } else if (!switch_test_flag(application_interface, SAF_SUPPORT_NOMEDIA) && !switch_channel_media_ready(session->channel)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application %s Requires media! pre_answering channel %s\n", switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Application %s Requires media! pre_answering channel %s\n",
extension->current_application->application_name, switch_channel_get_name(session->channel)); extension->current_application->application_name, switch_channel_get_name(session->channel));
switch_channel_pre_answer(session->channel); switch_channel_pre_answer(session->channel);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论