Asterisk - The Open Source Telephony Project
18.5.0
|
Wait for Silence. More...
#include "asterisk.h"
#include "asterisk/app.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/dsp.h"
#include "asterisk/module.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Data Structures | |
struct | wait_type |
Functions | |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "Wait For Silence/Noise") | |
static int | do_waiting (struct ast_channel *chan, int timereqd, time_t waitstart, int timeout, const struct wait_type *wait_for) |
static int | load_module (void) |
static int | unload_module (void) |
static int | waitfor_exec (struct ast_channel *chan, const char *data, const struct wait_type *wait_for) |
static int | waitfornoise_exec (struct ast_channel *chan, const char *data) |
static int | waitforsilence_exec (struct ast_channel *chan, const char *data) |
Variables | |
static char * | app_noise = "WaitForNoise" |
static char * | app_silence = "WaitForSilence" |
static const struct wait_type | wait_for_noise |
static const struct wait_type | wait_for_silence |
Wait for Silence.
Definition in file app_waitforsilence.c.
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"Wait For Silence/Noise" | |||
) |
Referenced by load_module().
|
static |
Definition at line 154 of file app_waitforsilence.c.
References ao2_bump, ao2_cleanup, ast_channel_name(), ast_channel_readformat(), ast_debug, ast_dsp_free(), ast_dsp_get_threshold_from_settings(), ast_dsp_new(), ast_dsp_set_threshold(), ast_format_get_name(), ast_format_slin, AST_FRAME_VOICE, ast_frfree, ast_log, ast_read(), ast_set_read_format(), ast_verb, ast_waitfor(), ast_frame::frametype, wait_type::func, LOG_WARNING, wait_type::name, NULL, pbx_builtin_setvar_helper(), RAII_VAR, wait_type::status, wait_type::stop_on_frame_timeout, and THRESHOLD_SILENCE.
Referenced by waitfor_exec().
|
static |
Definition at line 311 of file app_waitforsilence.c.
References app_noise, app_silence, AST_MODULE_INFO_STANDARD_EXTENDED(), ast_register_application_xml, ASTERISK_GPL_KEY, waitfornoise_exec(), and waitforsilence_exec().
|
static |
Definition at line 302 of file app_waitforsilence.c.
References app_noise, app_silence, and ast_unregister_application().
|
static |
Definition at line 228 of file app_waitforsilence.c.
References args, ast_answer(), AST_APP_ARG, ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), AST_DECLARE_APP_ARGS, ast_log, ast_opt_transmit_silence, AST_STANDARD_APP_ARGS, AST_STATE_UP, ast_strdupa, ast_strlen_zero, ast_verb, do_waiting(), LOG_ERROR, wait_type::name, NULL, parse(), and timeout.
Referenced by waitfornoise_exec(), and waitforsilence_exec().
|
static |
Definition at line 297 of file app_waitforsilence.c.
References waitfor_exec().
Referenced by load_module().
|
static |
Definition at line 292 of file app_waitforsilence.c.
References waitfor_exec().
Referenced by load_module().
|
static |
Definition at line 131 of file app_waitforsilence.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 130 of file app_waitforsilence.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 147 of file app_waitforsilence.c.
|
static |
Definition at line 140 of file app_waitforsilence.c.