Skip to content
Snippets Groups Projects
Commit dd0ee630 authored by Matt O'Gorman's avatar Matt O'Gorman
Browse files

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
parent 80a705c1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment