mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-01 22:33:48 +00:00
FS-7966: fix scope masked declaration
This commit is contained in:
parent
5ba81a466b
commit
a55d146368
@ -234,11 +234,11 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
|
|||||||
switch_channel_del_variable_prefix(channel, "DP_REGEX_MATCH");
|
switch_channel_del_variable_prefix(channel, "DP_REGEX_MATCH");
|
||||||
|
|
||||||
for (xregex = switch_xml_child(xcond, "regex"); xregex; xregex = xregex->next) {
|
for (xregex = switch_xml_child(xcond, "regex"); xregex; xregex = xregex->next) {
|
||||||
int time_match;
|
int regex_time_match;
|
||||||
check_tz();
|
check_tz();
|
||||||
time_match = switch_xml_std_datetime_check(xregex, tzoff ? &offset : NULL, tzname_);
|
regex_time_match = switch_xml_std_datetime_check(xregex, tzoff ? &offset : NULL, tzname_);
|
||||||
|
|
||||||
if (time_match == 1) {
|
if (regex_time_match == 1) {
|
||||||
if ( switch_core_test_flag(SCF_DIALPLAN_TIMESTAMPS) ) {
|
if ( switch_core_test_flag(SCF_DIALPLAN_TIMESTAMPS) ) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
||||||
"%sDialplan: %s Date/Time Match (PASS) [%s]\n", space,
|
"%sDialplan: %s Date/Time Match (PASS) [%s]\n", space,
|
||||||
@ -248,7 +248,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
|
|||||||
"%sDialplan: %s Date/Time Match (PASS) [%s]\n", space,
|
"%sDialplan: %s Date/Time Match (PASS) [%s]\n", space,
|
||||||
switch_channel_get_name(channel), exten_name);
|
switch_channel_get_name(channel), exten_name);
|
||||||
}
|
}
|
||||||
} else if (time_match == 0) {
|
} else if (regex_time_match == 0) {
|
||||||
if ( switch_core_test_flag(SCF_DIALPLAN_TIMESTAMPS) ) {
|
if ( switch_core_test_flag(SCF_DIALPLAN_TIMESTAMPS) ) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
||||||
"%sDialplan: %s Date/TimeMatch (FAIL) [%s]\n", space,
|
"%sDialplan: %s Date/TimeMatch (FAIL) [%s]\n", space,
|
||||||
@ -317,7 +317,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
|
|||||||
fail++;
|
fail++;
|
||||||
if (all && !xor) break;
|
if (all && !xor) break;
|
||||||
}
|
}
|
||||||
} else if (time_match == -1) {
|
} else if (regex_time_match == -1) {
|
||||||
if ( switch_core_test_flag(SCF_DIALPLAN_TIMESTAMPS) ) {
|
if ( switch_core_test_flag(SCF_DIALPLAN_TIMESTAMPS) ) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
||||||
"%sDialplan: %s Absolute Condition [%s] match=%s\n", space,
|
"%sDialplan: %s Absolute Condition [%s] match=%s\n", space,
|
||||||
@ -330,11 +330,11 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
|
|||||||
pass++;
|
pass++;
|
||||||
proceed = 1;
|
proceed = 1;
|
||||||
if (!all && !xor) break;
|
if (!all && !xor) break;
|
||||||
} else if (time_match == 1) {
|
} else if (regex_time_match == 1) {
|
||||||
pass++;
|
pass++;
|
||||||
proceed = 1;
|
proceed = 1;
|
||||||
if (!all && !xor) break;
|
if (!all && !xor) break;
|
||||||
} else { // time_match == 0
|
} else { // regex_time_match == 0
|
||||||
fail++;
|
fail++;
|
||||||
if (all) break;
|
if (all) break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user