From: Russell Bryant Date: Tue, 22 Jan 2008 20:41:05 +0000 (+0000) Subject: Make sure the command is not just present but is also configured to be executed X-Git-Tag: 1.6.0-beta2~2^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90bc08362e478ff63f49b022ba683152c77a4c71;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/asterisk.c b/main/asterisk.c index 54a88a9f53..4c903cfbef 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);