forked from Mirrors/freeswitch
add all modifier to break
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11557 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
044c29ce5f
commit
c21a5c67d6
@ -1954,11 +1954,7 @@ 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;
|
||||
|
@ -385,7 +385,19 @@ SWITCH_STANDARD_APP(remove_bugs_function)
|
||||
|
||||
SWITCH_STANDARD_APP(break_function)
|
||||
{
|
||||
switch_channel_set_flag(switch_core_session_get_channel(session), CF_BREAK);
|
||||
switch_channel_t *channel;
|
||||
|
||||
channel = switch_core_session_get_channel(session);
|
||||
|
||||
if (data && strcasecmp(data, "all")) {
|
||||
switch_core_session_flush_private_events(session);
|
||||
}
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_BROADCAST)) {
|
||||
switch_channel_stop_broadcast(channel);
|
||||
} else {
|
||||
switch_channel_set_flag(channel, CF_BREAK);
|
||||
}
|
||||
}
|
||||
|
||||
SWITCH_STANDARD_APP(queue_dtmf_function)
|
||||
|
Loading…
Reference in New Issue
Block a user