]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11156: [mod_dptools] wait for ack in application "deflect" #resolve
authorBrian West <brian@freeswitch.org>
Fri, 11 May 2018 14:16:13 +0000 (09:16 -0500)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:52 +0000 (07:21 +0000)
src/mod/applications/mod_dptools/mod_dptools.c

index 4cc8dfab64f01162dab70dfdcfc97ab1d7d3580b..d70a613b4a5b60c81739da97a7deb838dd005f94 100644 (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;