]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert 19d3e646368ee5fa1fc8f88c475d3063c4ae740a
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Mar 2012 16:57:21 +0000 (11:57 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Mar 2012 16:57:21 +0000 (11:57 -0500)
src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

index 97b3431d3d2db02ec232c0696da2e3833670895d..9faaa1852b3d8cc3c516ee33a651b7ecf62f8c11 100644 (file)
@@ -84,7 +84,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
        switch_xml_t xcond, xaction, xexpression, xregex;
        switch_channel_t *channel = switch_core_session_get_channel(session);
        char *exten_name = (char *) switch_xml_attr(xexten, "name");
-       int proceed = 0, save_proceed = 0, soft_proceed = 0;
+       int proceed = 0, save_proceed = 0;
        char *expression_expanded = NULL, *field_expanded = NULL;
        switch_regex_t *re = NULL, *save_re = NULL;
        int offset = 0;
@@ -117,7 +117,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
 
                if (switch_xml_child(xcond, "condition")) {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Nested conditions are not allowed!\n");
-                       soft_proceed = 1;
+                       proceed = 1;
                        goto done;
                }
 
@@ -143,7 +143,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
                                                          "Dialplan: %s Date/Time Match (PASS) [%s] break=%s\n",
                                                          switch_channel_get_name(channel), exten_name, do_break_a ? do_break_a : "on-false");
                        anti_action = SWITCH_FALSE;
-                       soft_proceed = 1;
+                       proceed = 1;
                } else if (time_match == 0) {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG_CLEAN(session), SWITCH_LOG_DEBUG,
                                                          "Dialplan: %s Date/TimeMatch (FAIL) [%s] break=%s\n",
@@ -223,11 +223,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++;
-                                       soft_proceed = 1;
+                                       proceed = 1;
                                        if (!all && !xor) break;
                                } else if (time_match == 1) {
                                        pass++;
-                                       soft_proceed = 1;
+                                       proceed = 1;
                                        if (!all && !xor) break;
                                }
                                
@@ -313,7 +313,7 @@ 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]\n", switch_channel_get_name(channel), exten_name);
                                anti_action = SWITCH_FALSE;
-                               soft_proceed = 1;
+                               proceed = 1;
                        }
 
                }
@@ -368,7 +368,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
                                                switch_caller_extension_add_application(session, *extension, application, data);
                                        }
                                }
-                               soft_proceed = 1;
+                               proceed = 1;
                        }
                } else {
                        if (field && strchr(expression, '(')) {
@@ -443,7 +443,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
        switch_regex_safe_free(re);
        switch_safe_free(field_expanded);
        switch_safe_free(expression_expanded);
-       return proceed ? proceed : soft_proceed;
+       return proceed;
 }
 
 static switch_status_t dialplan_xml_locate(switch_core_session_t *session, switch_caller_profile_t *caller_profile, switch_xml_t *root,