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
This commit is contained in:
Russell Bryant
2005-07-15 23:24:51 +00:00
parent 22b0f5d306
commit a9c7f50a09
9 changed files with 158 additions and 119 deletions

View File

@@ -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