[asterisk-commits] rmudgett: branch rmudgett/parking r330998 - /team/rmudgett/parking/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 5 20:16:35 CDT 2011


Author: rmudgett
Date: Fri Aug  5 20:16:31 2011
New Revision: 330998

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=330998
Log:
Made CLI "features show" indicate if the parking lot is enabled for use.

Modified:
    team/rmudgett/parking/main/features.c

Modified: team/rmudgett/parking/main/features.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/parking/main/features.c?view=diff&rev=330998&r1=330997&r2=330998
==============================================================================
--- team/rmudgett/parking/main/features.c (original)
+++ team/rmudgett/parking/main/features.c Fri Aug  5 20:16:31 2011
@@ -6410,7 +6410,6 @@
 		AST_RWLIST_UNLOCK(&feature_groups);
 	}
 
-/* BUGBUG display valid/disabled flag status? */
 	iter = ao2_iterator_init(parkinglots, 0);
 	while ((curlot = ao2_iterator_next(&iter))) {
 		ast_cli(a->fd, "\nCall parking (Parking lot: %s)\n", curlot->name);
@@ -6421,6 +6420,7 @@
 			curlot->cfg.parking_start, curlot->cfg.parking_stop);
 		ast_cli(a->fd,"%-22s:      %d ms\n", "Parkingtime", curlot->cfg.parkingtime);
 		ast_cli(a->fd,"%-22s:      %s\n", "MusicOnHold class", curlot->cfg.mohclass);
+		ast_cli(a->fd,"%-22s:      %s\n", "Enabled", AST_CLI_YESNO(!curlot->disabled));
 		ast_cli(a->fd,"\n");
 		ao2_ref(curlot, -1);
 	}




More information about the asterisk-commits mailing list