fix bogus patch to allow setting the CDR amaflags. (The original patch in
authorRussell Bryant <russell@russellbryant.com>
Tue, 16 May 2006 03:18:22 +0000 (03:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 16 May 2006 03:18:22 +0000 (03:18 +0000)
issue #7166 was fine.)

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

funcs/func_cdr.c

index c2a4569..1b46ad7 100644 (file)
@@ -99,7 +99,7 @@ static int cdr_write(struct ast_channel *chan, char *cmd, char *parse,
        else if (!strcasecmp(args.variable, "userfield"))
                ast_cdr_setuserfield(chan, value);
        else if (!strcasecmp(args.variable, "amaflags"))
-               ast_cdr_setuserfield(chan, value);
+               ast_cdr_setamaflags(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