[Asterisk-cvs] asterisk cdr.c,1.22,1.22.2.1

russell at lists.digium.com russell at lists.digium.com
Sun Oct 3 16:20:59 CDT 2004


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

Modified Files:
      Tag: v1-0
	cdr.c 
Log Message:
Fix CDR for supervised transfer in chan_zap and chan_sip (bug #1595)


Index: cdr.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr.c,v
retrieving revision 1.22
retrieving revision 1.22.2.1
diff -u -d -r1.22 -r1.22.2.1
--- cdr.c	24 Sep 2004 21:32:56 -0000	1.22
+++ cdr.c	3 Oct 2004 20:22:41 -0000	1.22.2.1
@@ -524,11 +524,16 @@
 	
 }
 
-void ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr) {
+struct ast_cdr *ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr) 
+{
+	struct ast_cdr *ret;
 	if (cdr) {
+		ret = cdr;
 		while(cdr->next)
 			cdr = cdr->next;
 		cdr->next = newcdr;
-	} else
-		ast_log(LOG_ERROR, "Can't append a CDR to NULL!\n");
+	} else {
+		ret = newcdr;
+	}
+	return ret;
 }




More information about the svn-commits mailing list