[asterisk-commits] russell: trunk r99645 - /trunk/main/asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 22 14:41:05 CST 2008
Author: russell
Date: Tue Jan 22 14:41:05 2008
New Revision: 99645
URL: http://svn.digium.com/view/asterisk?view=rev&rev=99645
Log:
Make sure the command is not just present but is also configured to be executed
Modified:
trunk/main/asterisk.c
Change Statistics:
0 files changed
Modified: trunk/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/main/asterisk.c?view=diff&rev=99645&r1=99644&r2=99645
==============================================================================
--- trunk/main/asterisk.c (original)
+++ trunk/main/asterisk.c Tue Jan 22 14:41:05 2008
@@ -2695,8 +2695,10 @@
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);
More information about the asterisk-commits
mailing list