From: Matthew Jordan Date: Mon, 1 Sep 2014 14:16:12 +0000 (+0000) Subject: main/cli: Do not attempt to show CDR data for internal channels X-Git-Tag: 12.6.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a211cdcf76c840554e68d1246612d384f2651ca5;p=thirdparty%2Fasterisk.git 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@422506 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 76c4962f4a..8735fff8d0 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1659,7 +1659,8 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar 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)); }