提交 3604bd05 authored 作者: Anthony Minessale's avatar Anthony Minessale

answer in conf

上级 d6d7773c
...@@ -5337,6 +5337,13 @@ SWITCH_STANDARD_APP(conference_function) ...@@ -5337,6 +5337,13 @@ SWITCH_STANDARD_APP(conference_function)
switch_event_t *params = NULL; switch_event_t *params = NULL;
int locked = 0; int locked = 0;
if (switch_channel_answer(channel) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel answer failed.\n");
return;
}
/* Save the original read codec. */ /* Save the original read codec. */
if (!(read_codec = switch_core_session_get_read_codec(session))) { if (!(read_codec = switch_core_session_get_read_codec(session))) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel has no media!\n"); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel has no media!\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论