[asterisk-commits] juggie: branch group/cdr_backend_ast_str r110018 - /team/group/cdr_backend_as...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 19 12:35:39 CDT 2008


Author: juggie
Date: Wed Mar 19 12:35:39 2008
New Revision: 110018

URL: http://svn.digium.com/view/asterisk?view=rev&rev=110018
Log:
clean up some unneaded checks

Modified:
    team/group/cdr_backend_ast_str/cdr/cdr_csv.c

Modified: team/group/cdr_backend_ast_str/cdr/cdr_csv.c
URL: http://svn.digium.com/view/asterisk/team/group/cdr_backend_ast_str/cdr/cdr_csv.c?view=diff&rev=110018&r1=110017&r2=110018
==============================================================================
--- team/group/cdr_backend_ast_str/cdr/cdr_csv.c (original)
+++ team/group/cdr_backend_ast_str/cdr/cdr_csv.c Wed Mar 19 12:35:39 2008
@@ -230,10 +230,7 @@
 #if 0
 	printf("[CDR] %s ('%s' -> '%s') Dur: %ds Bill: %ds Disp: %s Flags: %s Account: [%s]\n", cdr->channel, cdr->src, cdr->dst, cdr->duration, cdr->billsec, ast_cdr_disp2str(cdr->disposition), ast_cdr_flags2str(cdr->amaflags), cdr->accountcode);
 #endif
-	if (build_csv_record(buf, cdr)) {
-		ast_log(LOG_WARNING, "Unable to create CSV record in %d bytes.  CDR not recorded!\n", (int)sizeof(buf));
-		return 0;
-	}
+	build_csv_record(buf, cdr);
 	
 	/* because of the absolutely unconditional need for the
 	   highest reliability possible in writing billing records,




More information about the asterisk-commits mailing list