Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Function that drops specified frames from channels. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/framehook.h"
Go to the source code of this file.
Data Structures | |
struct | frame_drop_data |
Enumerations | |
enum | direction { TX = 0 , RX } |
Functions | |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "Function to drop frames on a channel.") | |
static void | datastore_destroy_cb (void *data) |
static int | frame_drop_helper (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
static void | hook_destroy_cb (void *framedata) |
static struct ast_frame * | hook_event_cb (struct ast_channel *chan, struct ast_frame *frame, enum ast_framehook_event event, void *data) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
struct { | |
const char * str | |
int type | |
} | controlframetype2str [] |
static const struct ast_datastore_info | frame_drop_datastore |
static struct ast_custom_function | frame_drop_function |
struct { | |
const char * str | |
enum ast_frame_type type | |
} | frametype2str [] |
Function that drops specified frames from channels.
Definition in file func_frame_drop.c.
enum direction |
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"Function to drop frames on a channel." | |||
) |
|
static |
Definition at line 159 of file func_frame_drop.c.
References ast_free.
|
static |
Definition at line 214 of file func_frame_drop.c.
References ARRAY_LEN, ast_calloc, ast_channel_datastore_add(), ast_channel_datastore_find(), ast_channel_datastore_remove(), ast_channel_lock, ast_channel_unlock, ast_datastore_alloc, ast_datastore_free(), ast_framehook_attach(), ast_framehook_detach(), AST_FRAMEHOOK_INTERFACE_VERSION, ast_free, ast_malloc, controlframetype2str, frame_drop_data::controlvalues, ast_datastore::data, ast_framehook_interface::data, frame_drop_datastore, frametype2str, hook_destroy_cb(), hook_event_cb(), id, frame_drop_data::list_type, NULL, RX, str, strcasestr(), TX, value, frame_drop_data::values, and ast_framehook_interface::version.
|
static |
Definition at line 168 of file func_frame_drop.c.
References ast_free.
Referenced by frame_drop_helper().
|
static |
Definition at line 173 of file func_frame_drop.c.
References ARRAY_LEN, AST_FRAME_CONTROL, AST_FRAMEHOOK_EVENT_READ, AST_FRAMEHOOK_EVENT_WRITE, ast_frfree, ast_null_frame, controlframetype2str, frame_drop_data::controlvalues, ast_frame::frametype, frametype2str, ast_frame_subclass::integer, frame_drop_data::list_type, RX, ast_frame::subclass, TX, and frame_drop_data::values.
Referenced by frame_drop_helper().
|
static |
Definition at line 296 of file func_frame_drop.c.
References ast_custom_function_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and frame_drop_function.
|
static |
Definition at line 291 of file func_frame_drop.c.
References ast_custom_function_unregister(), and frame_drop_function.
struct { ... } controlframetype2str[] |
Referenced by frame_drop_helper(), and hook_event_cb().
|
static |
Definition at line 163 of file func_frame_drop.c.
Referenced by frame_drop_helper().
|
static |
Definition at line 286 of file func_frame_drop.c.
Referenced by load_module(), and unload_module().
struct { ... } frametype2str[] |
Referenced by frame_drop_helper(), and hook_event_cb().
const char* str |
Definition at line 109 of file func_frame_drop.c.
Referenced by frame_drop_helper().
int type |
Definition at line 108 of file func_frame_drop.c.