mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
Make sure the command is not just present but is also configured to be executed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2695,8 +2695,10 @@ static void run_startup_commands(void)
|
||||
if (fd < 0)
|
||||
return;
|
||||
|
||||
for (v = ast_variable_browse(cfg, "startup_commands"); v; v = v->next)
|
||||
ast_cli_command(fd, v->name);
|
||||
for (v = ast_variable_browse(cfg, "startup_commands"); v; v = v->next) {
|
||||
if (ast_true(v->value))
|
||||
ast_cli_command(fd, v->name);
|
||||
}
|
||||
|
||||
close(fd);
|
||||
ast_config_destroy(cfg);
|
||||
|
Reference in New Issue
Block a user