From: Brian West Date: Fri, 11 May 2018 14:16:13 +0000 (-0500) Subject: FS-11156: [mod_dptools] wait for ack in application "deflect" #resolve X-Git-Tag: v1.8.1~3^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5efecb1ffa83f674aa85e5a69f28764fdad63859;p=thirdparty%2Ffreeswitch.git FS-11156: [mod_dptools] wait for ack in application "deflect" #resolve --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 4cc8dfab64..d70a613b4a 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -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;