summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-07-15 23:24:51 +0000
committerRussell Bryant <russell@russellbryant.com>2005-07-15 23:24:51 +0000
commita9c7f50a099906898eacbcf48e57661472c65be8 (patch)
tree1d145d53531c453391f74d30f64b85c38318a447 /funcs
parent22b0f5d30691e94b18e152ec44ed90a23f55b266 (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: https://origsvn.digium.com/svn/asterisk/trunk@6147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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