提交 1d12519d authored 作者: Anthony Minessale's avatar Anthony Minessale

only parse messages from channel_ready when its a session calling channel ready…

only parse messages from channel_ready when its a session calling channel ready on itself not when another thread calls it
上级 81b56a24
...@@ -1723,7 +1723,7 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_ ...@@ -1723,7 +1723,7 @@ SWITCH_DECLARE(int) switch_channel_test_ready(switch_channel_t *channel, switch_
} }
if (ret) { if (ret) {
if (!switch_channel_test_flag(channel, CF_LEG_HOLDING)) { if (!switch_channel_test_flag(channel, CF_LEG_HOLDING) && switch_core_session_in_thread(channel->session)) {
switch_ivr_parse_all_events(channel->session); switch_ivr_parse_all_events(channel->session);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论