[asterisk-commits] mjordan: branch 13 r422507 - in /branches/13: ./ main/cli.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 1 09:16:50 CDT 2014


Author: mjordan
Date: Mon Sep  1 09:16:48 2014
New Revision: 422507

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=422507
Log:
main/cli: Do not attempt to show CDR data for internal channels

Internal channels don't have CDRs. Querying the CDR engine for their variables
will make it cranky.
........

Merged revisions 422506 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    branches/13/   (props changed)
    branches/13/main/cli.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: branches/13/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/cli.c?view=diff&rev=422507&r1=422506&r2=422507
==============================================================================
--- branches/13/main/cli.c (original)
+++ branches/13/main/cli.c Mon Sep  1 09:16:48 2014
@@ -1662,7 +1662,8 @@
 		ast_str_append(&output, 0, "%s=%s\n", ast_var_name(var), ast_var_value(var));
 	}
 
-	if (ast_cdr_serialize_variables(ast_channel_name(chan), &obuf, '=', '\n')) {
+	if (!(ast_channel_tech(chan)->properties & AST_CHAN_TP_INTERNAL)
+		&& ast_cdr_serialize_variables(ast_channel_name(chan), &obuf, '=', '\n')) {
 		ast_str_append(&output, 0, "  CDR Variables:\n%s\n", ast_str_buffer(obuf));
 	}
 




More information about the asterisk-commits mailing list