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.";
#define AST_CLI_DEFINE(fn, txt,...)
Asterisk main include file. File version handling, generic pbx functions.
unsigned int comebackdialtime
int ao2_container_count(struct ao2_container *c)
Returns the number of elements in a container.
int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
Unregister multiple commands.
void unload_parking_ui(void)
Unregister CLI commands.
descriptor for a cli entry.
#define ao2_callback(c, flags, cb_fn, arg)
static char * complete_parking_lot(const char *word, int seeking)
static void cli_display_parking_global(int fd)
#define ast_cli_register_multiple(e, len)
Register multiple commands.
const ast_string_field comebackcontext
int load_parking_ui(void)
Register CLI commands.
static int display_parking_lot_cb(void *obj, void *arg, int flags)
#define ast_strdup(str)
A wrapper for strdup()
void ast_cli(int fd, const char *fmt,...)
struct ao2_container * get_parking_lot_container(void)
Get a pointer to the parking lot container for purposes such as iteration.
#define ast_strlen_zero(foo)
Configuration File Parser.
int parking_dynamic_lots_enabled(void)
Check global configuration to see if dynamic parking is enabled.
const ast_string_field parking_con
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.
char * parker_dial_string
static void cli_display_parking_lot(int fd, const char *name)
#define ao2_ref(o, delta)
unsigned int comebacktoorigin
The AMI - Asterisk Manager Interface - is a TCP protocol created to manage Asterisk with third-party ...
Configuration option-handling.
static void display_parked_call(struct parked_user *user, int fd)
#define ao2_callback_data(container, flags, cb_fn, arg, data)
const ast_string_field name
structure to hold users read from users.conf
static int display_parked_users_cb(void *obj, void *arg, int flags)
static void cli_display_parking_lot_list(int fd)
enum parking_lot_modes mode
static int complete_parking_lot_search(void *obj, void *arg, void *data, int flags)
Standard Command Line Interface.
static char * handle_show_parking_lot_cmd(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
const ast_string_field parkext
const char * ast_channel_name(const struct ast_channel *chan)
const ast_string_field mohclass
struct parking_lot * parking_lot_find_by_name(const char *lot_name)
Find a parking lot based on its name.
Call Parking Resource Internal API.
Call Parking and Pickup API Includes code and algorithms from the Zapata library. ...
Asterisk module definitions.
struct ast_channel * chan
static struct ast_cli_entry cli_parking_lot[]
static void display_parking_lot(struct parking_lot *lot, int fd)
struct parking_lot_cfg * cfg