Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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" | |||
) |
|
static |
Definition at line 155 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 312 of file app_waitforsilence.c.
References app_noise, app_silence, ast_register_application_xml, waitfornoise_exec(), and waitforsilence_exec().
|
static |
Definition at line 303 of file app_waitforsilence.c.
References app_noise, app_silence, and ast_unregister_application().
|
static |
Definition at line 229 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, and NULL.
Referenced by waitfornoise_exec(), and waitforsilence_exec().
|
static |
Definition at line 298 of file app_waitforsilence.c.
References wait_for_noise, and waitfor_exec().
Referenced by load_module().
|
static |
Definition at line 293 of file app_waitforsilence.c.
References wait_for_silence, and waitfor_exec().
Referenced by load_module().
|
static |
Definition at line 132 of file app_waitforsilence.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 131 of file app_waitforsilence.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 148 of file app_waitforsilence.c.
Referenced by waitfornoise_exec().
|
static |
Definition at line 141 of file app_waitforsilence.c.
Referenced by waitforsilence_exec().