diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 6bf1a60536734197f7cbde012af9d50f481dc475..217fb23cecfddcba0f7553113543d5515756fc01 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; }