[asterisk-commits] mjordan: trunk r389306 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 20 14:24:20 CDT 2013


Author: mjordan
Date: Mon May 20 14:24:16 2013
New Revision: 389306

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389306
Log:
Set the AST_CDR_FLAG_ORIGINATED flag on originated channel's CDRs

This may alleviate some of the CDR woes with originated channels, as CDRs
do like to know when a channel was originated. Eventually this will get
converted to be a channel flag, so its location is still good to know
post the great CDR shakeup of 2013.

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=389306&r1=389305&r2=389306
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Mon May 20 14:24:16 2013
@@ -10084,6 +10084,7 @@
 	if (account) {
 		ast_cdr_setaccount(dialed, account);
 	}
+	ast_set_flag(ast_channel_cdr(dialed), AST_CDR_FLAG_ORIGINATED);
 
 	if (!ast_strlen_zero(cid_num) && !ast_strlen_zero(cid_name)) {
 		struct ast_party_connected_line connected;




More information about the asterisk-commits mailing list