mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
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.2@56850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1432,6 +1432,8 @@ static int pbx_load_module(void);
|
|||||||
static int handle_reload_extensions(int fd, int argc, char *argv[])
|
static int handle_reload_extensions(int fd, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if (argc!=2) return RESULT_SHOWUSAGE;
|
if (argc!=2) return RESULT_SHOWUSAGE;
|
||||||
|
if (clearglobalvars_config)
|
||||||
|
pbx_builtin_clear_globals();
|
||||||
pbx_load_module();
|
pbx_load_module();
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user