提交 5efecb1f authored 作者: Brian West's avatar Brian West 提交者: Muteesa Fred

FS-11156: [mod_dptools] wait for ack in application "deflect" #resolve

上级 e7ff9036
...@@ -1512,7 +1512,9 @@ SWITCH_STANDARD_APP(respond_function) ...@@ -1512,7 +1512,9 @@ SWITCH_STANDARD_APP(respond_function)
SWITCH_STANDARD_APP(deflect_function) SWITCH_STANDARD_APP(deflect_function)
{ {
switch_core_session_message_t msg = { 0 }; switch_core_session_message_t msg = { 0 };
switch_channel_t *channel = switch_core_session_get_channel(session);
switch_channel_wait_for_flag(channel, CF_MEDIA_ACK, SWITCH_TRUE, 10000, NULL);
/* Tell the channel to deflect the call */ /* Tell the channel to deflect the call */
msg.from = __FILE__; msg.from = __FILE__;
msg.string_arg = data; msg.string_arg = data;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论