aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_config.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-26 20:09:06 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-26 20:09:06 +0000
commit8cc3b2062c3783f5d1e9becd45a466329b758f20 (patch)
treec8b18d77f8d359fb5930281e735049058360daf4 /pbx/pbx_config.c
parent80171292a28e7aecfce81a68aecb0bcc2b546dd0 (diff)
Merged revisions 56856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r56856 | file | 2007-02-26 15:07:18 -0500 (Mon, 26 Feb 2007) | 10 lines Merged revisions 56850 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r56850 | file | 2007-02-26 15:05:02 -0500 (Mon, 26 Feb 2007) | 2 lines Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56860 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_config.c')
-rw-r--r--pbx/pbx_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 6bf1a6053..217fb23ce 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -1272,6 +1272,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;
}