Asterisk - The Open Source Telephony Project
18.5.0
|
Call Parking CLI commands. More...
#include "asterisk.h"
#include "res_parking.h"
#include "asterisk/config.h"
#include "asterisk/config_options.h"
#include "asterisk/utils.h"
#include "asterisk/module.h"
#include "asterisk/cli.h"
#include "asterisk/astobj2.h"
#include "asterisk/features.h"
#include "asterisk/manager.h"
Go to the source code of this file.
Data Structures | |
struct | parking_lot_complete |
Functions | |
static void | cli_display_parking_global (int fd) |
static void | cli_display_parking_lot (int fd, const char *name) |
static void | cli_display_parking_lot_list (int fd) |
static char * | complete_parking_lot (const char *word, int seeking) |
static int | complete_parking_lot_search (void *obj, void *arg, void *data, int flags) |
static void | display_parked_call (struct parked_user *user, int fd) |
static int | display_parked_users_cb (void *obj, void *arg, int flags) |
static void | display_parking_lot (struct parking_lot *lot, int fd) |
static int | display_parking_lot_cb (void *obj, void *arg, int flags) |
static char * | handle_show_parking_lot_cmd (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
int | load_parking_ui (void) |
Register CLI commands. More... | |
void | unload_parking_ui (void) |
Unregister CLI commands. More... | |
Variables | |
static struct ast_cli_entry | cli_parking_lot [] |
Call Parking CLI commands.
Definition in file parking_ui.c.
|
static |
Definition at line 103 of file parking_ui.c.
References ast_cli(), and parking_dynamic_lots_enabled().
Referenced by handle_show_parking_lot_cmd().
|
static |
Definition at line 78 of file parking_ui.c.
References ao2_callback, ao2_cleanup, ao2_container_count(), ast_cli(), display_parked_users_cb(), display_parking_lot(), NULL, OBJ_MULTIPLE, OBJ_NODATA, parking_lot_find_by_name(), and RAII_VAR.
Referenced by handle_show_parking_lot_cmd().
|
static |
Definition at line 111 of file parking_ui.c.
References ao2_callback, ast_cli(), display_parking_lot_cb(), get_parking_lot_container(), OBJ_MULTIPLE, and OBJ_NODATA.
Referenced by handle_show_parking_lot_cmd().
|
static |
Definition at line 140 of file parking_ui.c.
References ao2_callback_data, ao2_ref, ast_strdup, ast_strlen_zero, complete_parking_lot_search(), get_parking_lot_container(), parking_lot::name, NULL, OBJ_PARTIAL_KEY, and parking_lot_complete::seeking.
Referenced by handle_show_parking_lot_cmd().
|
static |
Definition at line 131 of file parking_ui.c.
References CMP_MATCH, parking_lot_complete::seeking, and parking_lot_complete::which.
Referenced by complete_parking_lot().
|
static |
Definition at line 38 of file parking_ui.c.
References ast_channel_name(), ast_cli(), parked_user::chan, parked_user::parker_dial_string, and parked_user::parking_space.
Referenced by display_parked_users_cb().
|
static |
Definition at line 46 of file parking_ui.c.
References display_parked_call().
Referenced by cli_display_parking_lot().
|
static |
Definition at line 54 of file parking_ui.c.
References ast_cli(), parking_lot::cfg, parking_lot_cfg::comebackcontext, parking_lot_cfg::comebackdialtime, parking_lot_cfg::comebacktoorigin, parking_lot::mode, parking_lot_cfg::mohclass, parking_lot::name, parking_lot_cfg::parkext, parking_lot_cfg::parking_con, parking_lot_cfg::parking_start, parking_lot_cfg::parking_stop, PARKINGLOT_DISABLED, PARKINGLOT_DYNAMIC, and parking_lot_cfg::parkingtime.
Referenced by cli_display_parking_lot(), and display_parking_lot_cb().
|
static |
Definition at line 70 of file parking_ui.c.
References display_parking_lot().
Referenced by cli_display_parking_lot_list().
|
static |
Definition at line 162 of file parking_ui.c.
References ast_cli_args::argc, ast_cli_args::argv, ast_cli(), cli_display_parking_global(), cli_display_parking_lot(), cli_display_parking_lot_list(), CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_parking_lot(), ast_cli_args::fd, ast_cli_args::n, NULL, ast_cli_args::pos, ast_cli_entry::usage, and ast_cli_args::word.
int load_parking_ui | ( | void | ) |
Register CLI commands.
0 | if successful |
-1 | on failure |
Definition at line 198 of file parking_ui.c.
References ARRAY_LEN, and ast_cli_register_multiple.
Referenced by load_module().
void unload_parking_ui | ( | void | ) |
Unregister CLI commands.
Definition at line 203 of file parking_ui.c.
References ARRAY_LEN, and ast_cli_unregister_multiple().
Referenced by unload_module().
|
static |
Definition at line 194 of file parking_ui.c.