From 34ee0cfa6ca72cbe36cde2b40ed0a48238c8c184 Mon Sep 17 00:00:00 2001 From: Isaac Klein Date: Tue, 30 Sep 2025 12:33:26 -0400 Subject: [PATCH] [mod_commands] fix break all for parked calls uuid_break will now respect the "all" flag to stop all files waiting to play for channels that have the CF_BROADCAST flag set --- src/mod/applications/mod_commands/mod_commands.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 9184a78b93b..262f8b87e32 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -5019,18 +5019,12 @@ SWITCH_STANDARD_API(break_function) - if (switch_channel_test_flag(channel, CF_BROADCAST)) { - switch_channel_stop_broadcast(channel); - } else { - switch_channel_set_flag_value(channel, CF_BREAK, all ? 2 : 1); - } + switch_channel_stop_broadcast(channel); + switch_channel_set_flag_value(channel, CF_BREAK, all ? 2 : 1); if (qchannel) { - if (switch_channel_test_flag(qchannel, CF_BROADCAST)) { - switch_channel_stop_broadcast(qchannel); - } else { - switch_channel_set_flag_value(qchannel, CF_BREAK, all ? 2 : 1); - } + switch_channel_stop_broadcast(qchannel); + switch_channel_set_flag_value(qchannel, CF_BREAK, all ? 2 : 1); } stream->write_function(stream, "+OK\n");