[asterisk-commits] mjordan: branch 12 r400286 - /branches/12/main/cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 2 13:57:17 CDT 2013


Author: mjordan
Date: Wed Oct  2 13:57:15 2013
New Revision: 400286

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400286
Log:
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.

Modified:
    branches/12/main/cdr.c

Modified: branches/12/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/cdr.c?view=diff&rev=400286&r1=400285&r2=400286
==============================================================================
--- branches/12/main/cdr.c (original)
+++ branches/12/main/cdr.c Wed Oct  2 13:57:15 2013
@@ -3638,7 +3638,7 @@
 #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;




More information about the asterisk-commits mailing list