]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 56850 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 26 Feb 2007 20:07:18 +0000 (20:07 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 26 Feb 2007 20:07:18 +0000 (20:07 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@56856 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_config.c

index 54555d6508ebff88b3bb7f472b4c6503cef325bd..0546bad88aa4ccc6e1f770dfc654b8354c630408 100644 (file)
@@ -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;
 }