Asterisk - The Open Source Telephony Project
21.4.1
|
Function that intercepts HOLD frames from channels and raises events. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/frame.h"
#include "asterisk/stasis.h"
#include "asterisk/stasis_channels.h"
Go to the source code of this file.
Data Structures | |
struct | hold_intercept_data |
Private data structure used with the function's datastore. More... | |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | hold_intercept_fn_write (struct ast_channel *chan, const char *function, char *data, const char *value) |
static struct ast_frame * | hold_intercept_framehook (struct ast_channel *chan, struct ast_frame *f, enum ast_framehook_event event, void *data) |
Frame hook that is called to intercept hold/unhold. | |
static int | hold_intercept_framehook_consume (void *data, enum ast_frame_type type) |
Callback function which informs upstream if we are consuming a frame of a specific type. | |
static int | load_module (void) |
static int | remove_hold_intercept (struct ast_channel *chan) |
static int | set_hold_intercept (struct ast_channel *chan) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Hold interception dialplan function" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "da6642af068ee5e6490c5b1d2cc1d238" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const struct ast_datastore_info | hold_intercept_datastore |
The channel datastore the function uses to store state. More... | |
static struct ast_custom_function | hold_intercept_function |
Definition of the HOLD_INTERCEPT function. More... | |
Function that intercepts HOLD frames from channels and raises events.
Definition in file func_holdintercept.c.
|
static |
The channel datastore the function uses to store state.
Definition at line 72 of file func_holdintercept.c.
|
static |
Definition of the HOLD_INTERCEPT function.
Definition at line 217 of file func_holdintercept.c.