struct ast_custom_function *acfptr = ast_custom_function_find(copy);
if (acfptr == NULL)
- ast_log(LOG_ERROR, "Function %s not registered\n", function);
+ ast_log(LOG_ERROR, "Function %s not registered\n", copy);
else if (!acfptr->read)
- ast_log(LOG_ERROR, "Function %s cannot be read\n", function);
+ ast_log(LOG_ERROR, "Function %s cannot be read\n", copy);
else
- return acfptr->read(chan, function, args, workspace, len);
+ return acfptr->read(chan, copy, args, workspace, len);
return -1;
}
struct ast_custom_function *acfptr = ast_custom_function_find(copy);
if (acfptr == NULL)
- ast_log(LOG_ERROR, "Function %s not registered\n", function);
+ ast_log(LOG_ERROR, "Function %s not registered\n", copy);
else if (!acfptr->write)
- ast_log(LOG_ERROR, "Function %s cannot be written to\n", function);
+ ast_log(LOG_ERROR, "Function %s cannot be written to\n", copy);
else
- return acfptr->write(chan, function, args, value);
+ return acfptr->write(chan, copy, args, value);
return -1;
}