From: Anthony Minessale Date: Tue, 31 Jan 2012 21:31:08 +0000 (-0600) Subject: [Freeswitch-dev] Absolute conditions are not changing the proceed variable... (mod_di... X-Git-Tag: v1.2-rc1~19^2^2~68^2~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00a61c48bce26cb96f3d615bd0f08091d7143e1;p=thirdparty%2Ffreeswitch.git [Freeswitch-dev] Absolute conditions are not changing the proceed variable... (mod_dialplan_xml.c) --- diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index 45a736facf..db45f2933b 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -189,7 +189,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t * total++; field = (char *) switch_xml_attr(xregex, "field"); - + if (field) { if (strchr(field, '$')) { if ((field_expanded = switch_channel_expand_variables(channel, field)) == field) { @@ -222,9 +222,11 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t * switch_log_printf(SWITCH_CHANNEL_SESSION_LOG_CLEAN(session), SWITCH_LOG_DEBUG, "Dialplan: %s Absolute Condition [%s] match=%s\n", switch_channel_get_name(channel), exten_name, all ? "all" : "any"); pass++; + proceed = 1; if (!all && !xor) break; } else if (time_match == 1) { pass++; + proceed = 1; if (!all && !xor) break; }