Wait for Silence. More...
#include "asterisk.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/dsp.h"
#include "asterisk/module.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static int | do_waiting (struct ast_channel *chan, int timereqd, time_t waitstart, int timeout, int wait_for_silence) |
static int | load_module (void) |
static int | unload_module (void) |
static int | waitfor_exec (struct ast_channel *chan, const char *data, int wait_for_silence) |
static int | waitfornoise_exec (struct ast_channel *chan, const char *data) |
static int | waitforsilence_exec (struct ast_channel *chan, const char *data) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Wait For Silence" , .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 = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, } |
static char * | app_noise = "WaitForNoise" |
static char * | app_silence = "WaitForSilence" |
static struct ast_module_info * | ast_module_info = &__mod_info |
Wait for Silence.
Definition in file app_waitforsilence.c.
|
static |
Definition at line 276 of file app_waitforsilence.c.
|
static |
Definition at line 276 of file app_waitforsilence.c.
|
static |
Definition at line 129 of file app_waitforsilence.c.
References ast_debug, ast_dsp_free(), ast_dsp_get_threshold_from_settings(), ast_dsp_new(), ast_dsp_noise(), ast_dsp_set_threshold(), ast_dsp_silence(), AST_FORMAT_SLINEAR, AST_FRAME_VOICE, ast_frfree, ast_getformatname(), ast_log(), ast_read(), ast_set_read_format(), ast_verb, ast_waitfor(), f, ast_frame::frametype, LOG_WARNING, ast_channel::name, pbx_builtin_setvar_helper(), ast_channel::readformat, and THRESHOLD_SILENCE.
Referenced by waitfor_exec().
|
static |
Definition at line 267 of file app_waitforsilence.c.
References ast_register_application_xml, waitfornoise_exec(), and waitforsilence_exec().
|
static |
Definition at line 258 of file app_waitforsilence.c.
References ast_unregister_application().
|
static |
Definition at line 209 of file app_waitforsilence.c.
References ast_channel::_state, ast_answer(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_log(), ast_opt_transmit_silence, AST_STATE_UP, ast_verb, do_waiting(), and LOG_WARNING.
Referenced by waitfornoise_exec(), and waitforsilence_exec().
|
static |
Definition at line 253 of file app_waitforsilence.c.
References waitfor_exec().
Referenced by load_module().
|
static |
Definition at line 248 of file app_waitforsilence.c.
References waitfor_exec().
Referenced by load_module().
|
static |
Definition at line 276 of file app_waitforsilence.c.
|
static |
Definition at line 127 of file app_waitforsilence.c.
|
static |
Definition at line 126 of file app_waitforsilence.c.
|
static |
Definition at line 276 of file app_waitforsilence.c.