From: Russell Bryant Date: Tue, 16 May 2006 03:18:22 +0000 (+0000) Subject: fix bogus patch to allow setting the CDR amaflags. (The original patch in X-Git-Tag: 1.4.0-beta1~1375 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8047e8067ed18f03b55089b0987ee9258b591f52;p=thirdparty%2Fasterisk.git fix bogus patch to allow setting the CDR amaflags. (The original patch in issue #7166 was fine.) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27269 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c index c2a4569a28..1b46ad79cd 100644 --- a/funcs/func_cdr.c +++ b/funcs/func_cdr.c @@ -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