[Asterisk-cvs] asterisk/pbx pbx_config.c,1.49,1.50

markster at lists.digium.com markster at lists.digium.com
Sat Oct 16 15:46:06 CDT 2004


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv28043/pbx

Modified Files:
	pbx_config.c 
Log Message:
Add autofallthrough mode


Index: pbx_config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- pbx_config.c	3 Oct 2004 16:15:44 -0000	1.49
+++ pbx_config.c	16 Oct 2004 19:46:02 -0000	1.50
@@ -42,6 +42,7 @@
 
 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"));
 		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 @@
 	for (con = ast_walk_contexts(NULL); con; con = ast_walk_contexts(con))
 		ast_context_verify_includes(con);
 
+	pbx_set_autofallthrough(autofallthrough_config);
+
 	return 0;
 }
 




More information about the svn-commits mailing list