int res;
int x;
int flags;
- struct ast_config *cfg = ast_load(config);
+ struct ast_config *cfg;
struct ast_variable *v;
res = pipe(cmd);
res = pipe(sndcmd);
}
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
ast_cli_register(myclis + x);
- if (cfg) {
+ if ((cfg = ast_load(config)) {
v = ast_variable_browse(cfg, "general");
while(v) {
if (!strcasecmp(v->name, "autoanswer"))
{
int res;
int x;
- struct ast_config *cfg = ast_load(config);
+ struct ast_config *cfg;
struct ast_variable *v;
res = pipe(sndcmd);
if (res) {
}
for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
ast_cli_register(myclis + x);
- if (cfg) {
+ if ((cfg = ast_load(config))) {
v = ast_variable_browse(cfg, "general");
while(v) {
if (!strcasecmp(v->name, "autoanswer"))