it's time... only enable global priority jumping if the config file says to do so
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 5 Jun 2006 14:00:13 +0000 (14:00 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 5 Jun 2006 14:00:13 +0000 (14:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32281 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configs/extensions.conf.sample
pbx/pbx_config.c

index cb3384d..f74f350 100644 (file)
@@ -50,7 +50,7 @@ clearglobalvars=no
 ; of Asterisk). Individual applications can also be requested to do this
 ; by passing a 'j' option in their arguments.
 ;
-priorityjumping=no
+;priorityjumping=yes
 ;
 ; You can include other config files, use the #include command
 ; (without the ';'). Note that this is different from the "include" command
index d8f4d6d..ae3458d 100644 (file)
@@ -1358,7 +1358,7 @@ static void pbx_load_config(const char *config_file)
        write_protect_config = ast_true(ast_variable_retrieve(cfg, "general", "writeprotect"));
        autofallthrough_config = ast_true(ast_variable_retrieve(cfg, "general", "autofallthrough"));
        clearglobalvars_config = ast_true(ast_variable_retrieve(cfg, "general", "clearglobalvars"));
-       ast_set2_flag(&ast_options, !ast_false(ast_variable_retrieve(cfg, "general", "priorityjumping")), AST_OPT_FLAG_PRIORITY_JUMPING);
+       ast_set2_flag(&ast_options, ast_true(ast_variable_retrieve(cfg, "general", "priorityjumping")), AST_OPT_FLAG_PRIORITY_JUMPING);
                                                                    
        for (v = ast_variable_browse(cfg, "globals"); v; v = v->next) {
                memset(realvalue, 0, sizeof(realvalue));