[asterisk-commits] murf: branch group/CDRfix5 r78267 - /team/group/CDRfix5/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 6 16:36:14 CDT 2007


Author: murf
Date: Mon Aug  6 16:36:13 2007
New Revision: 78267

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78267
Log:
Next installment on getting Asterisk to post unanswered, busy, failed calls

Modified:
    team/group/CDRfix5/main/channel.c

Modified: team/group/CDRfix5/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/group/CDRfix5/main/channel.c?view=diff&rev=78267&r1=78266&r2=78267
==============================================================================
--- team/group/CDRfix5/main/channel.c (original)
+++ team/group/CDRfix5/main/channel.c Mon Aug  6 16:36:13 2007
@@ -1678,6 +1678,12 @@
 			chan->hangupcause,
 			ast_cause2str(chan->hangupcause)
 			);
+	
+	if (chan->cdr && !ast_test_flag(chan->cdr, AST_CDR_FLAG_BRIDGED) && !ast_test_flag(chan->cdr, AST_CDR_FLAG_POST_DISABLED) && chan->cdr->disposition != AST_CDR_NULL) {
+		ast_cdr_end(chan->cdr);
+		ast_cdr_detach(chan->cdr);
+	}
+	
 	ast_channel_free(chan);
 
 	return res;




More information about the asterisk-commits mailing list