From 9283987418e4128eedf4831182d799c8dd1015b7 Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Wed, 2 Oct 2013 19:17:15 +0000 Subject: Fix the CDR CLI command 'cdr show active {channel}' When the switch from channel names to channel unique IDs happened, the poor CLI command got left in the dust. This fixes the command so that users can once again see how Asterisk is messing up your billing information. ........ Merged revisions 400286 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400287 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/cdr.c') diff --git a/main/cdr.c b/main/cdr.c index 44178e628..cbd441bbd 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -3638,7 +3638,7 @@ static void cli_show_channel(struct ast_cli_args *a) #define TITLE_STRING "%-10.10s %-20.20s %-25.25s %-15.15s %-15.15s %-8.8s %-8.8s %-8.8s %-8.8s %-8.8s\n" #define FORMAT_STRING "%-10.10s %-20.20s %-25.25s %-15.15s %-15.15s %-8.8s %-8.8s %-8.8s %-8.8ld %-8.8ld\n" - cdr = ao2_find(active_cdrs_by_channel, channel_name, OBJ_KEY); + cdr = cdr_object_get_by_name(channel_name); if (!cdr) { ast_cli(a->fd, "Unknown channel: %s\n", channel_name); return; -- cgit v1.2.3