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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Jordan
2013-10-02 18:57:15 +00:00
parent 94a673a878
commit 3ccb6a9ea5

View File

@@ -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 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" #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) { if (!cdr) {
ast_cli(a->fd, "Unknown channel: %s\n", channel_name); ast_cli(a->fd, "Unknown channel: %s\n", channel_name);
return; return;