[asterisk-commits] murf: trunk r140692 - in /trunk: ./ main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 2 17:55:13 CDT 2008


Author: murf
Date: Tue Sep  2 17:55:12 2008
New Revision: 140692

URL: http://svn.digium.com/view/asterisk?view=rev&rev=140692
Log:
Merged revisions 140690 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140690 | murf | 2008-09-02 16:40:13 -0600 (Tue, 02 Sep 2008) | 1 line

After reconsidering, with respect to 13409, ast_cdr_detach should be OK, better in fact, than ast_cdr_free, which generates lots of useless warnings that will undoubtably generate complaints.

Hmmm. It doesn't hush the useless warnings, but it does allow control of posting via the detach and post routines, for those possible situations,
where you'd want to post single-channel cdrs.

........

Modified:
    trunk/   (props changed)
    trunk/main/channel.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=140692&r1=140691&r2=140692
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Sep  2 17:55:12 2008
@@ -1362,7 +1362,7 @@
 	ast_jb_destroy(chan);
 
 	if (chan->cdr) {
-		ast_cdr_free(chan->cdr);
+		ast_cdr_detach(chan->cdr);
 		chan->cdr = NULL;
 	}
 	




More information about the asterisk-commits mailing list