diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-26 20:05:02 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-26 20:05:02 +0000 |
commit | e2de71f9c50852b5dddfbb705df823721bd8a70f (patch) | |
tree | a777c9e33b612100420027dcd39fca56b19ddbc1 /pbx | |
parent | 431ef0f4c1c1a5de4ecc3b646f872c5b3c51b894 (diff) |
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/branches/1.2@56850 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 2a060e1ad..684e43fc1 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; } |