提交 609c0295 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix the thing the guy mentioned on irc

上级 9a6c29f8
......@@ -3455,7 +3455,11 @@ SWITCH_STANDARD_API(uuid_pre_answer_function)
if (uuid && (xsession = switch_core_session_locate(uuid))) {
switch_channel_t *channel = switch_core_session_get_channel(xsession);
switch_channel_pre_answer(channel);
if (switch_channel_pre_answer(channel) == SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "+OK\n");
} else {
stream->write_function(stream, "-ERROR\n");
}
switch_core_session_rwunlock(xsession);
} else {
stream->write_function(stream, "-ERROR\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论