diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-22 20:41:05 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-22 20:41:05 +0000 |
commit | bfc825996c4148b9f26d35aee08baf564ebbe0a6 (patch) | |
tree | 1a9a784252cf1ef6722101f66e2419354d8b4c3b /main/asterisk.c | |
parent | 6798dc75e69b1ea1d36e59e4b9c8e27c00f786a4 (diff) |
Make sure the command is not just present but is also configured to be executed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99645 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r-- | main/asterisk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/asterisk.c b/main/asterisk.c index 54a88a9f5..4c903cfbe 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -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); |