Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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) |
command parking show <name> More... | |
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(), name, 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(), and ast_cli().
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, parked_user::lot, 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 |
command parking show <name>
Definition at line 162 of file parking_ui.c.
References a, 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(), NULL, and ast_cli_entry::usage.
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, ast_cli_register_multiple, and cli_parking_lot.
Referenced by load_module().
void unload_parking_ui | ( | void | ) |
Unregister CLI commands.
Definition at line 203 of file parking_ui.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), and cli_parking_lot.
Referenced by unload_module().
|
static |
Definition at line 194 of file parking_ui.c.
Referenced by load_parking_ui(), and unload_parking_ui().