[svn-commits] murf: branch murf/bug8221-1.4 r48287 - /team/murf/bug8221-1.4/main/channel.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Dec 5 18:24:32 MST 2006


Author: murf
Date: Tue Dec  5 19:24:31 2006
New Revision: 48287

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48287
Log:
Let channel creation be where CDR's are allocated. So far, some testing shows this is not catastrophic

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

Modified: team/murf/bug8221-1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug8221-1.4/main/channel.c?view=diff&rev=48287&r1=48286&r2=48287
==============================================================================
--- team/murf/bug8221-1.4/main/channel.c (original)
+++ team/murf/bug8221-1.4/main/channel.c Tue Dec  5 19:24:31 2006
@@ -676,7 +676,12 @@
 	}
 #else
 	tmp->timingfd = -1;					
-#endif					
+#endif
+
+	/* Experiment: under what conditions do we NOT want to track cdrs on channels? */
+	tmp->cdr = ast_cdr_alloc();
+	ast_cdr_init(tmp->cdr, tmp);
+	ast_cdr_start(tmp->cdr);
 
 	if (needqueue) {
 		if (pipe(tmp->alertpipe)) {



More information about the svn-commits mailing list