[asterisk-commits] murf: branch murf/bug8221-1.4 r48474 - /team/murf/bug8221-1.4/main/cdr.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Dec 14 11:21:58 MST 2006


Author: murf
Date: Thu Dec 14 12:21:57 2006
New Revision: 48474

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48474
Log:
Hmm. Shouldn't I merge the LATEST end time between cdrs?

Modified:
    team/murf/bug8221-1.4/main/cdr.c

Modified: team/murf/bug8221-1.4/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug8221-1.4/main/cdr.c?view=diff&rev=48474&r1=48473&r2=48474
==============================================================================
--- team/murf/bug8221-1.4/main/cdr.c (original)
+++ team/murf/bug8221-1.4/main/cdr.c Thu Dec 14 12:21:57 2006
@@ -470,8 +470,8 @@
 	}
 	if (!ast_tvzero(from->end)) {
 		if (!ast_tvzero(to->end)) {
-			if (ast_tvcmp(to->end, from->end) > 0 ) {
-				to->end = from->end; /* use the earliest time */
+			if (ast_tvcmp(to->end, from->end) < 0 ) {
+				to->end = from->end; /* use the latest time */
 				from->end = ast_tv(0,0); /* we actively "steal" these values */
 			} else {
 				ast_log(LOG_WARNING,"CDR end disagreement for %s\n", to->channel);



More information about the asterisk-commits mailing list