Merged revisions 67073 via svnmerge from
authorSteve Murphy <murf@digium.com>
Mon, 4 Jun 2007 22:15:38 +0000 (22:15 +0000)
committerSteve Murphy <murf@digium.com>
Mon, 4 Jun 2007 22:15:38 +0000 (22:15 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67073 | murf | 2007-06-04 15:59:34 -0600 (Mon, 04 Jun 2007) | 1 line

This typo has been here since 1.4 forked. It has been the source of heartburn to many a dialplan/CDR programmer.
........

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

main/cdr.c

index fb1ce17..7e3ab5b 100644 (file)
@@ -754,7 +754,7 @@ static void set_one_cid(struct ast_cdr *cdr, struct ast_channel *c)
 int ast_cdr_setcid(struct ast_cdr *cdr, struct ast_channel *c)
 {
        for (; cdr; cdr = cdr->next) {
-               if (ast_test_flag(cdr, AST_CDR_FLAG_LOCKED))
+               if (!ast_test_flag(cdr, AST_CDR_FLAG_LOCKED))
                        set_one_cid(cdr, c);
        }
        return 0;