| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
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 158 of file func_frame_drop.c.
References ast_free.
| 
 | static | 
Definition at line 217 of file func_frame_drop.c.
References ARRAY_LEN, ast_asprintf, 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, 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 167 of file func_frame_drop.c.
References ast_free.
Referenced by frame_drop_helper().
| 
 | static | 
Definition at line 172 of file func_frame_drop.c.
References ARRAY_LEN, ast_debug, AST_FRAME_CONTROL, ast_frame_subclass2str(), ast_frame_type2str(), AST_FRAMEHOOK_EVENT_READ, AST_FRAMEHOOK_EVENT_WRITE, ast_frfree, ast_null_frame, buf, controlframetype2str, frame_drop_data::controlvalues, ast_frame::frametype, frametype2str, ast_frame_subclass::integer, frame_drop_data::list_type, NULL, RX, ast_frame::subclass, TX, and frame_drop_data::values.
Referenced by frame_drop_helper().
| 
 | static | 
Definition at line 301 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 296 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 162 of file func_frame_drop.c.
Referenced by frame_drop_helper().
| 
 | static | 
Definition at line 291 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 108 of file func_frame_drop.c.
Referenced by frame_drop_helper().
| int type | 
Definition at line 107 of file func_frame_drop.c.