aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-15 23:24:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-15 23:24:51 +0000
commit195245925855327e6d12be2293c8e9fcc57662cd (patch)
tree1d145d53531c453391f74d30f64b85c38318a447 /funcs
parentff15e0fa53156b9994da3f726bfe91232de6195a (diff)
Allow manager originate to specifiy more than one variable to be set.
Allow manager originate and spool files to set writable dialplan functions, including those that use the pipe symbol to seperate arguments. Allow CDR dialplan function to be able to set the account code and userfield. This deprecates the use of the Account header in manager originate and spool files, as well as the SetAccount and SetCDRUserField applications. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rwxr-xr-xfuncs/func_cdr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c
index 0e9a13eaa..1220a8201 100755
--- a/funcs/func_cdr.c
+++ b/funcs/func_cdr.c
@@ -77,7 +77,12 @@ static void builtin_function_cdr_write(struct ast_channel *chan, char *cmd, char
recursive = 1;
}
- ast_cdr_setvar(chan->cdr, argv[0], value, recursive);
+ if (!strcasecmp(argv[0], "accountcode"))
+ ast_cdr_setaccount(chan, value);
+ else if (!strcasecmp(argv[0], "userfield"))
+ ast_cdr_setuserfield(chan, value);
+ else
+ ast_cdr_setvar(chan->cdr, argv[0], value, recursive);
}
#ifndef BUILTIN_FUNC