提交 4e9c7aab authored 作者: Anthony Minessale's avatar Anthony Minessale

fix race

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7478 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 af40b99b
......@@ -857,11 +857,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
goto outer_for;
}
if (switch_core_session_running(peer_sessions[i])) {
if (!(flags & SOF_NOBLOCK)) {
switch_channel_set_state(peer_channels[i], CS_RING);
}
} else {
if (!switch_core_session_running(peer_sessions[i])) {
//if (!(flags & SOF_NOBLOCK)) {
//switch_channel_set_state(peer_channels[i], CS_RING);
//}
//} else {
switch_core_session_thread_launch(peer_sessions[i]);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论