[asterisk-commits] murf: branch 1.4 r67073 - /branches/1.4/main/cdr.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jun 4 14:59:35 MST 2007


Author: murf
Date: Mon Jun  4 16:59:34 2007
New Revision: 67073

URL: http://svn.digium.com/view/asterisk?view=rev&rev=67073
Log:
This typo has been here since 1.4 forked. It has been the source of heartburn to many a dialplan/CDR programmer.

Modified:
    branches/1.4/main/cdr.c

Modified: branches/1.4/main/cdr.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/cdr.c?view=diff&rev=67073&r1=67072&r2=67073
==============================================================================
--- branches/1.4/main/cdr.c (original)
+++ branches/1.4/main/cdr.c Mon Jun  4 16:59:34 2007
@@ -749,7 +749,7 @@
 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;



More information about the asterisk-commits mailing list