[Asterisk-cvs] asterisk/apps app_forkcdr.c,1.16,1.17

russell russell
Sun Nov 6 23:23:37 CST 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv7131/apps

Modified Files:
	app_forkcdr.c 
Log Message:
use correct arguments to ast_cdr_reset from my changes earlier today


Index: app_forkcdr.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_forkcdr.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- app_forkcdr.c	6 Nov 2005 15:09:46 -0000	1.16
+++ app_forkcdr.c	7 Nov 2005 04:14:48 -0000	1.17
@@ -57,16 +57,23 @@
 {
 	struct ast_cdr *cdr;
 	struct ast_cdr *newcdr;
+	struct ast_flags flags = { AST_CDR_FLAG_KEEP_VARS };
+
 	if (!chan || !(cdr = chan->cdr))
 		return;
+
 	while (cdr->next)
 		cdr = cdr->next;
+	
 	if (!(newcdr = ast_cdr_dup(cdr)))
 		return;
+	
 	ast_cdr_append(cdr, newcdr);
-	ast_cdr_reset(newcdr, AST_CDR_FLAG_KEEP_VARS);
+	ast_cdr_reset(newcdr, &flags);
+	
 	if (!ast_test_flag(cdr, AST_CDR_FLAG_KEEP_VARS))
 		ast_cdr_free_vars(cdr, 0);
+	
 	ast_set_flag(cdr, AST_CDR_FLAG_CHILD | AST_CDR_FLAG_LOCKED);
 }
 




More information about the svn-commits mailing list