From: Joshua Colp Date: Mon, 26 Feb 2007 20:05:02 +0000 (+0000) Subject: Obey the clearglobalvars option in extensions reload (or dialplan reload depending... X-Git-Tag: 1.2.16~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7312a2eb3d629a468efd8671a871ea8f2a4645d7;p=thirdparty%2Fasterisk.git Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56850 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 2a060e1ad9..684e43fc13 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1432,6 +1432,8 @@ static int pbx_load_module(void); 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; }