allow func_cdr to set amaflags patch provided by
authorMatt O'Gorman <mogorman@digium.com>
Mon, 15 May 2006 19:46:26 +0000 (19:46 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Mon, 15 May 2006 19:46:26 +0000 (19:46 +0000)
bug 7166

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27231 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_cdr.c

index 26fb045..c2a4569 100644 (file)
@@ -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