[asterisk-commits] mjordan: trunk r400287 - in /trunk: ./ main/cdr.c

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


Author: mjordan
Date: Wed Oct  2 14:17:15 2013
New Revision: 400287

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

Merged revisions 400286 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/main/cdr.c

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Wed Oct  2 14:17:15 2013
@@ -1,1 +1,1 @@
-/branches/12:1-398558,398560-398577,398579-399305,399307-400181,400194,400196,400205,400217,400227,400236,400245,400254,400256,400265,400268,400270,400281,400284
+/branches/12:1-398558,398560-398577,398579-399305,399307-400181,400194,400196,400205,400217,400227,400236,400245,400254,400256,400265,400268,400270,400281,400284,400286

Modified: trunk/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cdr.c?view=diff&rev=400287&r1=400286&r2=400287
==============================================================================
--- trunk/main/cdr.c (original)
+++ trunk/main/cdr.c Wed Oct  2 14:17: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