Merged revisions 56856 via svnmerge from
[asterisk/asterisk.git] / pbx / pbx_config.c
index 6bf1a60..217fb23 100644 (file)
@@ -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;
 }