Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Call Parking Device State Management. More...
#include "asterisk.h"
#include "asterisk/logger.h"
#include "res_parking.h"
#include "asterisk/devicestate.h"
Go to the source code of this file.
Data Structures | |
struct | parking_lot_extension_inuse_search |
Functions | |
int | load_parking_devstate (void) |
Register Parking devstate handler. More... | |
static enum ast_device_state | metermaidstate (const char *data) |
static int | parking_lot_search_context_extension_inuse (void *obj, void *arg, int flags) |
void | parking_notify_metermaids (int exten, const char *context, enum ast_device_state state) |
Notify metermaids that we've changed an extension. More... | |
static int | retrieve_parked_user_targeted (void *obj, void *arg, int flags) |
void | unload_parking_devstate (void) |
Unregister Parking devstate handler. More... | |
Call Parking Device State Management.
Definition in file parking_devicestate.c.
int load_parking_devstate | ( | void | ) |
Register Parking devstate handler.
Definition at line 121 of file parking_devicestate.c.
References ast_devstate_prov_add(), and metermaidstate().
Referenced by load_module().
|
static |
Definition at line 77 of file parking_devicestate.c.
References ao2_callback, ao2_cleanup, ast_debug, AST_DEVICE_INUSE, AST_DEVICE_INVALID, AST_DEVICE_NOT_INUSE, ast_strdupa, ast_strlen_zero(), voicemailpwcheck::context, parking_lot_extension_inuse_search::context, parking_lot_extension_inuse_search::exten, get_parking_lot_container(), NULL, parking_lot_search_context_extension_inuse(), RAII_VAR, and strsep().
Referenced by load_parking_devstate().
|
static |
Definition at line 47 of file parking_devicestate.c.
References ao2_callback, ao2_cleanup, ao2_lock, ao2_unlock, parking_lot::cfg, CMP_MATCH, parking_lot_extension_inuse_search::context, parking_lot_extension_inuse_search::exten, NULL, PARK_UNSET, parking_lot::parked_users, parking_lot_cfg::parking_con, parking_lot_cfg::parking_start, parking_lot_cfg::parking_stop, RAII_VAR, and retrieve_parked_user_targeted().
Referenced by metermaidstate().
void parking_notify_metermaids | ( | int | exten, |
const char * | context, | ||
enum ast_device_state | state | ||
) |
Notify metermaids that we've changed an extension.
exten | Extension of the call parked/unparked |
context | Context of the call parked/unparked |
state | new device state |
Definition at line 108 of file parking_devicestate.c.
References ast_debug, ast_devstate2str(), AST_DEVSTATE_CACHABLE, ast_devstate_changed(), voicemailpwcheck::context, and parking_lot_extension_inuse_search::exten.
Referenced by bridge_parking_pull(), and bridge_parking_push().
|
static |
Definition at line 36 of file parking_devicestate.c.
References CMP_MATCH.
Referenced by parking_lot_search_context_extension_inuse().
void unload_parking_devstate | ( | void | ) |
Unregister Parking devstate handler.
Definition at line 116 of file parking_devicestate.c.
References ast_devstate_prov_del().
Referenced by unload_module().