From ce0fc128243363ff2c2b096c96775965ea76b332 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 29 Jan 2009 21:52:38 +0000 Subject: [PATCH] add all modifier to break git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11558 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index cf1bd5a705..d7176b2465 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1954,7 +1954,11 @@ SWITCH_STANDARD_API(break_function) } channel = switch_core_session_get_channel(psession); - + if (switch_channel_test_flag(channel, CF_BROADCAST)) { + switch_channel_stop_broadcast(channel); + } else { + switch_channel_set_flag(channel, CF_BREAK); + } switch_core_session_rwunlock(psession); return SWITCH_STATUS_SUCCESS;