87 exten =
strsep(&context,
"@");
94 if (sscanf(exten,
"%d", &search.
exten) != 1) {
98 ast_debug(4,
"Checking state of exten %d in context %s\n", search.
exten, context);
110 ast_debug(4,
"Notification of state change to metermaids %d@%s\n to state '%s'\n",
const char * ast_devstate2str(enum ast_device_state devstate) attribute_pure
Convert device state to text string for output.
ast_device_state
Device States.
Asterisk main include file. File version handling, generic pbx functions.
void parking_notify_metermaids(int exten, const char *context, enum ast_device_state state)
Notify metermaids that we've changed an extension.
struct ao2_container * parked_users
#define ao2_callback(c, flags, cb_fn, arg)
static enum ast_device_state metermaidstate(const char *data)
int ast_devstate_prov_del(const char *label)
Remove device state provider.
int ast_devstate_prov_add(const char *label, ast_devstate_prov_cb_type callback)
Add device state provider.
struct ao2_container * get_parking_lot_container(void)
Get a pointer to the parking lot container for purposes such as iteration.
static int parking_lot_search_context_extension_inuse(void *obj, void *arg, int flags)
#define ast_strlen_zero(foo)
void unload_parking_devstate(void)
Unregister Parking devstate handler.
#define ast_debug(level,...)
Log a DEBUG message.
int ast_devstate_changed(enum ast_device_state state, enum ast_devstate_cache cachable, const char *fmt,...)
Tells Asterisk the State for Device is changed.
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.
#define ast_strdupa(s)
duplicate a string in memory from the stack
structure to hold users read from users.conf
Support for logging to various files, console and syslog Configuration in file logger.conf.
char * strsep(char **str, const char *delims)
int load_parking_devstate(void)
Register Parking devstate handler.
Call Parking Resource Internal API.
static int retrieve_parked_user_targeted(void *obj, void *arg, int flags)
struct parking_lot_cfg * cfg