Asterisk - The Open Source Telephony Project
21.4.1
|
Periodic dialplan hooks. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/audiohook.h"
#include "asterisk/test.h"
#include "asterisk/beep.h"
Go to the source code of this file.
Data Structures | |
struct | hook_state |
struct | hook_thread_arg |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
int AST_OPTIONAL_API_NAME() | ast_beep_start (struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len) |
int AST_OPTIONAL_API_NAME() | ast_beep_stop (struct ast_channel *chan, const char *beep_id) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | do_hook (struct ast_channel *chan, struct hook_state *state) |
static int | hook_callback (struct ast_audiohook *audiohook, struct ast_channel *chan, struct ast_frame *frame, enum ast_audiohook_direction direction) |
static void | hook_datastore_destroy_callback (void *data) |
static void * | hook_launch_thread (void *data) |
static int | hook_off (struct ast_channel *chan, const char *hook_id) |
static int | hook_on (struct ast_channel *chan, const char *data, unsigned int hook_id) |
static int | hook_re_enable (struct ast_channel *chan, const char *uid) |
static int | hook_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static struct hook_state * | hook_state_alloc (const char *context, const char *exten, unsigned int interval, unsigned int hook_id) |
static struct hook_thread_arg * | hook_thread_arg_alloc (struct ast_channel *chan, struct hook_state *state) |
static void | hook_thread_arg_destroy (struct hook_thread_arg *arg) |
static int | hook_write (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
static int | init_hook (struct ast_channel *chan, const char *context, const char *exten, unsigned int interval, unsigned int hook_id) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_GLOBAL_SYMBOLS , .description = "Periodic dialplan hooks." , .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" , .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "app_chanspy,func_cut,func_groupcount,func_uri", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const char | beep_exten [] = "beep" |
static const char | context_name [] = "__func_periodic_hook_context__" |
static const char | exten_name [] = "hook" |
static const char | full_exten_name [] = "hook@__func_periodic_hook_context__" |
static unsigned int | global_hook_id |
Last used hook ID. More... | |
static const struct ast_datastore_info | hook_datastore |
static struct ast_custom_function | hook_function |
Periodic dialplan hooks.
Definition in file func_periodic_hook.c.
|
static |
Last used hook ID.
This is incremented each time a hook is created to give each hook a unique ID.
Definition at line 105 of file func_periodic_hook.c.
|
static |
Definition at line 143 of file func_periodic_hook.c.
|
static |
Definition at line 442 of file func_periodic_hook.c.