mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
allow func_cdr to set amaflags patch provided by
bug 7166 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -98,6 +98,8 @@ static int cdr_write(struct ast_channel *chan, char *cmd, char *parse,
|
||||
ast_cdr_setaccount(chan, value);
|
||||
else if (!strcasecmp(args.variable, "userfield"))
|
||||
ast_cdr_setuserfield(chan, value);
|
||||
else if (!strcasecmp(args.variable, "amaflags"))
|
||||
ast_cdr_setuserfield(chan, value);
|
||||
else if (chan->cdr)
|
||||
ast_cdr_setvar(chan->cdr, args.variable, value, ast_test_flag(&flags, OPT_RECURSIVE));
|
||||
/* No need to worry about the u flag, as all fields for which setting
|
||||
|
Reference in New Issue
Block a user