diff options
author | Mark Spencer <markster@digium.com> | 2004-10-16 19:46:02 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-10-16 19:46:02 +0000 |
commit | 996c8e7126181f020fe11f38b3d42d6a5983b524 (patch) | |
tree | e95d5e54684b9b5ea3c4914c82ca36558f2a82c3 /pbx/pbx_config.c | |
parent | eadd6c5509c47594b82b13db1da15b56560cd7d8 (diff) |
Add autofallthrough mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_config.c')
-rwxr-xr-x | pbx/pbx_config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 0df07bd47..7e0d6d9cd 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -42,6 +42,7 @@ static char *registrar = "pbx_config"; static int static_config = 0; static int write_protect_config = 1; +static int autofallthrough_config = 0; AST_MUTEX_DEFINE_STATIC(save_dialplan_lock); @@ -1629,6 +1630,10 @@ static int pbx_load_module(void) "static")); write_protect_config = ast_true(ast_variable_retrieve(cfg, "general", "writeprotect")); + + autofallthrough_config = ast_true(ast_variable_retrieve(cfg, "general", + "autofallthrough")); + v = ast_variable_browse(cfg, "globals"); while(v) { memset(realvalue, 0, sizeof(realvalue)); @@ -1774,6 +1779,8 @@ static int pbx_load_module(void) for (con = ast_walk_contexts(NULL); con; con = ast_walk_contexts(con)) ast_context_verify_includes(con); + pbx_set_autofallthrough(autofallthrough_config); + return 0; } |