42 ast_cli(fd,
" Parker Dial String : %s\n",
user->parker_dial_string);
56 ast_cli(fd,
"Parking Lot: %s\n--------------------------------------------------------------------------\n",
lot->
name);
85 ast_cli(fd,
"Could not find parking lot '%s'\n\n",
name);
91 ast_cli(fd,
"Parked Calls\n------------\n");
105 ast_cli(fd,
"Parking General Options\n"
106 "-----------------------\n");
117 if (!lot_container) {
118 ast_cli(fd,
"Failed to obtain parking lot list.\n\n");
168 "Usage: parking show [name]\n"
169 " Shows a list of parking lots or details of a specific parking lot.";
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdup(str)
A wrapper for strdup()
#define ao2_callback(c, flags, cb_fn, arg)
ao2_callback() is a generic function that applies cb_fn() to all objects in a container,...
int ao2_container_count(struct ao2_container *c)
Returns the number of elements in a container.
#define ao2_callback_data(container, flags, cb_fn, arg, data)
#define ao2_ref(o, delta)
Reference/unreference an object and return the old refcount.
const char * ast_channel_name(const struct ast_channel *chan)
Standard Command Line Interface.
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
Unregister multiple commands.
#define AST_CLI_DEFINE(fn, txt,...)
void ast_cli(int fd, const char *fmt,...)
#define ast_cli_register_multiple(e, len)
Register multiple commands.
Configuration option-handling.
Call Parking and Pickup API Includes code and algorithms from the Zapata library.
Configuration File Parser.
The AMI - Asterisk Manager Interface - is a TCP protocol created to manage Asterisk with third-party ...
Asterisk module definitions.
static void cli_display_parking_global(int fd)
static int display_parking_lot_cb(void *obj, void *arg, int flags)
void unload_parking_ui(void)
Unregister CLI commands.
static void cli_display_parking_lot(int fd, const char *name)
static char * handle_show_parking_lot_cmd(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
command parking show <name>
static int display_parked_users_cb(void *obj, void *arg, int flags)
static void display_parked_call(struct parked_user *user, int fd)
static void display_parking_lot(struct parking_lot *lot, int fd)
static int complete_parking_lot_search(void *obj, void *arg, void *data, int flags)
int load_parking_ui(void)
Register CLI commands.
static struct ast_cli_entry cli_parking_lot[]
static char * complete_parking_lot(const char *word, int seeking)
static void cli_display_parking_lot_list(int fd)
Call Parking Resource Internal API.
struct ao2_container * get_parking_lot_container(void)
Get a pointer to the parking lot container for purposes such as iteration.
struct parking_lot * parking_lot_find_by_name(const char *lot_name)
Find a parking lot based on its name.
int parking_dynamic_lots_enabled(void)
Check global configuration to see if dynamic parking is enabled.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
descriptor for a cli entry.
unsigned int comebacktoorigin
const ast_string_field comebackcontext
const ast_string_field mohclass
const ast_string_field parkext
unsigned int comebackdialtime
const ast_string_field parking_con
enum parking_lot_modes mode
struct parking_lot_cfg * cfg
const ast_string_field name
structure to hold users read from users.conf
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.