提交 75bd5642 authored 作者: Moises Silva's avatar Moises Silva

freetdm: wait for state change to be cleared when placing outgoing calls

         this fixes a race where the call is hangup even before the state
         DIALING is processed and therefore the HANGUP state change is
         ignored.
上级 6a9a27b7
......@@ -2270,6 +2270,8 @@ FT_DECLARE(ftdm_status_t) _ftdm_channel_call_place(const char *file, const char
UNREFERENCED_PARAMETER(line);
#endif
ftdm_wait_for_flag_cleared(ftdmchan, FTDM_CHANNEL_STATE_CHANGE, 100);
ftdm_channel_unlock(ftdmchan);
return status;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论