[asterisk-commits] file: branch 1.2 r56850 - /branches/1.2/pbx/pbx_config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Feb 26 13:05:03 MST 2007


Author: file
Date: Mon Feb 26 14:05:02 2007
New Revision: 56850

URL: http://svn.digium.com/view/asterisk?view=rev&rev=56850
Log:
Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek)

Modified:
    branches/1.2/pbx/pbx_config.c

Modified: branches/1.2/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx/pbx_config.c?view=diff&rev=56850&r1=56849&r2=56850
==============================================================================
--- branches/1.2/pbx/pbx_config.c (original)
+++ branches/1.2/pbx/pbx_config.c Mon Feb 26 14:05:02 2007
@@ -1432,6 +1432,8 @@
 static int handle_reload_extensions(int fd, int argc, char *argv[])
 {
 	if (argc!=2) return RESULT_SHOWUSAGE;
+	if (clearglobalvars_config)
+		pbx_builtin_clear_globals();
 	pbx_load_module();
 	return RESULT_SUCCESS;
 }



More information about the asterisk-commits mailing list