expose function execution routines and warn about trying to set a read-only cdr var

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Anthony Minessale II
2005-05-05 15:07:49 +00:00
parent b0685838db
commit 6b7677e842
3 changed files with 36 additions and 3 deletions

4
pbx.c
View File

@@ -207,8 +207,6 @@ static int pbx_builtin_saycharacters(struct ast_channel *, void *);
static int pbx_builtin_sayphonetic(struct ast_channel *, void *);
int pbx_builtin_setvar(struct ast_channel *, void *);
static int pbx_builtin_importvar(struct ast_channel *, void *);
static char *ast_func_read(struct ast_channel *chan, const char *in, char *workspace, size_t len);
static void ast_func_write(struct ast_channel *chan, const char *in, const char *value);
static struct varshead globals;
@@ -1313,7 +1311,7 @@ char *ast_func_read(struct ast_channel *chan, const char *in, char *workspace, s
return ret;
}
static void ast_func_write(struct ast_channel *chan, const char *in, const char *value)
void ast_func_write(struct ast_channel *chan, const char *in, const char *value)
{
char *args = NULL, *function, *p;
struct ast_custom_function *acfptr;