]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add all modifier to break
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 29 Jan 2009 21:52:38 +0000 (21:52 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 29 Jan 2009 21:52:38 +0000 (21:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11558 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c

index cf1bd5a7053508b5b88f6e22cd210e639b98491b..d7176b2465a3e81b10b6f325ea195412a4b0a802 100644 (file)
@@ -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;