diff options
Diffstat (limited to 'res/parking/parking_ui.c')
-rw-r--r-- | res/parking/parking_ui.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/res/parking/parking_ui.c b/res/parking/parking_ui.c index 5b432b689..f3eeafa4c 100644 --- a/res/parking/parking_ui.c +++ b/res/parking/parking_ui.c @@ -66,6 +66,7 @@ static void display_parking_lot(struct parking_lot *lot, int fd) 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"); } @@ -102,6 +103,14 @@ static void cli_display_parking_lot(int fd, const char *name) 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; @@ -172,6 +181,7 @@ static char *handle_show_parking_lot_cmd(struct ast_cli_entry *e, int cmd, struc 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; } |