From: Anthony Minessale Date: Thu, 29 Jan 2009 21:52:38 +0000 (+0000) Subject: add all modifier to break X-Git-Tag: v1.0.3~518 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce0fc128243363ff2c2b096c96775965ea76b332;p=thirdparty%2Ffreeswitch.git add all modifier to break git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11558 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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;