aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-16 19:46:02 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-16 19:46:02 +0000
commit5c9fef377dfc9e24dbd53c3864d5b5004c05091b (patch)
treee95d5e54684b9b5ea3c4914c82ca36558f2a82c3 /pbx
parent0b59f08c8d83fa653296ca2b90262cd2c8386b85 (diff)
Add autofallthrough mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4020 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_config.c7
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;
}