add all modifier to break

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11558 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-01-29 21:52:38 +00:00
parent c21a5c67d6
commit ce0fc12824
1 changed files with 5 additions and 1 deletions

View 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;