ast_cli(fd, "Comeback Dial Time : %u sec\n", lot->cfg->comebackdialtime);
ast_cli(fd, "MusicOnHold Class : %s\n", lot->cfg->mohclass);
ast_cli(fd, "Enabled : %s\n", (lot->mode == PARKINGLOT_DISABLED) ? "no" : "yes");
+ ast_cli(fd, "Dynamic : %s\n", (lot->mode == PARKINGLOT_DYNAMIC) ? "yes" : "no");
ast_cli(fd, "\n");
}
ast_cli(fd, "\n");
}
+static void cli_display_parking_global(int fd)
+{
+ ast_cli(fd, "Parking General Options\n"
+ "-----------------------\n");
+ ast_cli(fd, "Dynamic Parking : %s\n", parking_dynamic_lots_enabled() ? "yes" : "no");
+ ast_cli(fd, "\n");
+}
+
static void cli_display_parking_lot_list(int fd)
{
struct ao2_container *lot_container;
ast_cli(a->fd, "\n");
if (a->argc == 2) {
+ cli_display_parking_global(a->fd);
cli_display_parking_lot_list(a->fd);
return CLI_SUCCESS;
}