mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add recursive flags and workaround for nested broadcast in controlled situations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14644 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -470,10 +470,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
|
||||
|
||||
cmd_hash = switch_hashfunc_default(cmd, &hlen);
|
||||
|
||||
switch_channel_set_flag(channel, CF_EVENT_PARSE);
|
||||
switch_channel_set_flag_recursive(channel, CF_EVENT_PARSE);
|
||||
|
||||
if (switch_true(event_lock)) {
|
||||
switch_channel_set_flag(channel, CF_EVENT_LOCK);
|
||||
switch_channel_set_flag_recursive(channel, CF_EVENT_LOCK);
|
||||
}
|
||||
|
||||
if (lead_frames) {
|
||||
@@ -604,8 +604,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
|
||||
status = SWITCH_STATUS_SUCCESS;
|
||||
|
||||
done:
|
||||
switch_channel_clear_flag(channel, CF_EVENT_PARSE);
|
||||
switch_channel_clear_flag(channel, CF_EVENT_LOCK);
|
||||
switch_channel_clear_flag_recursive(channel, CF_EVENT_PARSE);
|
||||
switch_channel_clear_flag_recursive(channel, CF_EVENT_LOCK);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user