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

This commit is contained in:
Brian West 2018-05-11 09:16:13 -05:00 committed by Muteesa Fred
parent e7ff903629
commit 5efecb1ffa
1 changed files with 2 additions and 0 deletions

View File

@ -1512,7 +1512,9 @@ SWITCH_STANDARD_APP(respond_function)
SWITCH_STANDARD_APP(deflect_function)
{
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 */
msg.from = __FILE__;
msg.string_arg = data;