RTS API Documentation
1.10.11
|
Go to the source code of this file.
Functions | |
static switch_limit_interface_t * | get_backend (const char *backend) |
static void | release_backend (switch_limit_interface_t *limit) |
void | switch_limit_init (switch_memory_pool_t *pool) |
Initilize the LIMIT Core System. More... | |
void | switch_limit_fire_event (const char *backend, const char *realm, const char *key, uint32_t usage, uint32_t rate, uint32_t max, uint32_t ratemax) |
fire event for limit usage More... | |
static switch_status_t | limit_state_handler (switch_core_session_t *session) |
switch_status_t | switch_limit_incr (const char *backend, switch_core_session_t *session, const char *realm, const char *resource, const int max, const int interval) |
Increment resource. More... | |
switch_status_t | switch_limit_release (const char *backend, switch_core_session_t *session, const char *realm, const char *resource) |
Release resource. More... | |
int | switch_limit_usage (const char *backend, const char *realm, const char *resource, uint32_t *rcount) |
get usage count for resource More... | |
switch_status_t | switch_limit_reset (const char *backend) |
reset all usage counters More... | |
switch_status_t | switch_limit_interval_reset (const char *backend, const char *realm, const char *resource) |
reset interval usage counter for a given resource More... | |
char * | switch_limit_status (const char *backend) |
retrieve arbitrary status information More... | |
|
static |
Definition at line 35 of file switch_limit.c.
References SWITCH_CHANNEL_LOG, switch_loadable_module_get_limit_interface(), SWITCH_LOG_DEBUG, and switch_log_printf().
Referenced by switch_limit_incr(), switch_limit_interval_reset(), switch_limit_release(), switch_limit_reset(), switch_limit_status(), and switch_limit_usage().
|
static |
Definition at line 76 of file switch_limit.c.
References CS_HANGUP, CS_ROUTING, LIMIT_BACKEND_VARIABLE, LIMIT_IGNORE_TRANSFER_VARIABLE, switch_channel_get_state(), switch_channel_get_variable, SWITCH_CHANNEL_SESSION_LOG, switch_channel_set_variable, switch_core_session_get_channel(), switch_limit_release(), SWITCH_LOG_DEBUG, switch_log_printf(), switch_separate_string(), SWITCH_STATUS_SUCCESS, switch_true(), and zstr.
Referenced by switch_limit_incr().
|
static |
Definition at line 49 of file switch_limit.c.
References UNPROTECT_INTERFACE.
Referenced by switch_limit_incr(), switch_limit_interval_reset(), switch_limit_release(), switch_limit_reset(), switch_limit_status(), and switch_limit_usage().