aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-26 20:07:18 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-26 20:07:18 +0000
commit6baa3352ae6d1a9c3867dbd3af12d35271fff75f (patch)
tree16d8c2eeef755174bb08f377f24bec5be06b0755 /pbx
parentb35df171dca8e13c191d98457be35a5bd476ad71 (diff)
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/branches/1.4@56856 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-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 54555d650..0546bad88 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -2067,6 +2067,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;
}