diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-09-01 15:25:26 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-09-01 15:25:26 +0000 |
commit | 897cbf6a4f4123a3c7462da2b373e96d784b02be (patch) | |
tree | 04488bdf0041f30fb6ebd9a28bbda5bf520bbf8a /main/cli.c | |
parent | df5dbbd878fa5304b3ca64ac65ac9774731453d2 (diff) |
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
........
Merged revisions 422507 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c index 7aa5022f7..a519cbc49 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1662,7 +1662,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)); } |