[svn-commits] mjordan: branch 12 r422506 - /branches/12/main/cli.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Sep 1 09:16:14 CDT 2014
Author: mjordan
Date: Mon Sep 1 09:16:12 2014
New Revision: 422506
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=422506
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.
Modified:
branches/12/main/cli.c
Modified: branches/12/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/cli.c?view=diff&rev=422506&r1=422505&r2=422506
==============================================================================
--- branches/12/main/cli.c (original)
+++ branches/12/main/cli.c Mon Sep 1 09:16:12 2014
@@ -1659,7 +1659,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 svn-commits
mailing list