[asterisk-commits] russell: trunk r54901 - in /trunk: ./
pbx/pbx_config.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Feb 16 11:04:35 MST 2007
Author: russell
Date: Fri Feb 16 12:04:34 2007
New Revision: 54901
URL: http://svn.digium.com/view/asterisk?view=rev&rev=54901
Log:
Merged revisions 54898 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r54898 | russell | 2007-02-16 12:03:41 -0600 (Fri, 16 Feb 2007) | 4 lines
Fix setting "autofallthrough" to yes by default. It was set to enabled in
pbx.c. However, if the option was not present in extensions.conf, then
pbx_config.c would set it back to disabled.
........
Modified:
trunk/ (props changed)
trunk/pbx/pbx_config.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_config.c?view=diff&rev=54901&r1=54900&r2=54901
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Fri Feb 16 12:04:34 2007
@@ -48,7 +48,7 @@
static int static_config = 0;
static int write_protect_config = 1;
-static int autofallthrough_config = 0;
+static int autofallthrough_config = 1;
static int clearglobalvars_config = 0;
AST_MUTEX_DEFINE_STATIC(save_dialplan_lock);
@@ -1337,6 +1337,7 @@
struct ast_context *con;
struct ast_variable *v;
const char *cxt;
+ const char *aft;
cfg = ast_config_load(config_file);
if (!cfg)
@@ -1345,7 +1346,8 @@
/* Use existing config to populate the PBX table */
static_config = ast_true(ast_variable_retrieve(cfg, "general", "static"));
write_protect_config = ast_true(ast_variable_retrieve(cfg, "general", "writeprotect"));
- autofallthrough_config = ast_true(ast_variable_retrieve(cfg, "general", "autofallthrough"));
+ if ((aft = ast_variable_retrieve(cfg, "general", "autofallthrough")))
+ autofallthrough_config = ast_true(aft);
clearglobalvars_config = ast_true(ast_variable_retrieve(cfg, "general", "clearglobalvars"));
ast_set2_flag(&ast_options, ast_true(ast_variable_retrieve(cfg, "general", "priorityjumping")), AST_OPT_FLAG_PRIORITY_JUMPING);
More information about the asterisk-commits
mailing list