Asterisk - The Open Source Telephony Project
18.5.0
|
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 |
Enumerator | |
---|---|
TX | |
RX |
Definition at line 137 of file func_frame_drop.c.
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"Function to drop frames on a channel." | |||
) |
Referenced by load_module().
|
static |
|
static |
Definition at line 203 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, frametype2str, hook_destroy_cb(), hook_event_cb(), id, frame_drop_data::list_type, NULL, RX, str, strcasestr(), TX, frame_drop_data::values, and ast_framehook_interface::version.
|
static |
Definition at line 157 of file func_frame_drop.c.
References ast_free.
Referenced by frame_drop_helper().
|
static |
Definition at line 162 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 285 of file func_frame_drop.c.
References ast_custom_function_register, AST_MODULE_INFO_STANDARD_EXTENDED(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and ASTERISK_GPL_KEY.
|
static |
Definition at line 280 of file func_frame_drop.c.
References ast_custom_function_unregister().
struct { ... } controlframetype2str[] |
Referenced by frame_drop_helper(), and hook_event_cb().
|
static |
Definition at line 152 of file func_frame_drop.c.
|
static |
Definition at line 275 of file func_frame_drop.c.
struct { ... } frametype2str[] |
Referenced by frame_drop_helper(), and hook_event_cb().
const char* str |
Definition at line 98 of file func_frame_drop.c.
Referenced by frame_drop_helper().
int type |
Definition at line 97 of file func_frame_drop.c.