|
Asterisk - The Open Source Telephony Project
18.5.0
|
Virtual Dictation Machine Application For Asterisk. More...
#include "asterisk.h"#include <sys/stat.h>#include "asterisk/paths.h"#include "asterisk/file.h"#include "asterisk/pbx.h"#include "asterisk/module.h"#include "asterisk/say.h"#include "asterisk/app.h"#include "asterisk/format_cache.h"
Go to the source code of this file.
Macros | |
| #define | ast_toggle_flag(it, flag) if(ast_test_flag(it, flag)) ast_clear_flag(it, flag); else ast_set_flag(it, flag) |
Enumerations | |
| enum | dflags { DFLAG_RECORD = (1 << 0), DFLAG_PLAY = (1 << 1), DFLAG_TRUNC = (1 << 2), DFLAG_PAUSE = (1 << 3) } |
| enum | dmodes { DMODE_INIT, DMODE_RECORD, DMODE_PLAY } |
Functions | |
| AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "Virtual Dictation Machine") | |
| static int | dictate_exec (struct ast_channel *chan, const char *data) |
| static int | load_module (void) |
| static int | play_and_wait (struct ast_channel *chan, char *file, char *digits) |
| static int | unload_module (void) |
Variables | |
| static const char | app [] = "Dictate" |
Virtual Dictation Machine Application For Asterisk.
Definition in file app_dictate.c.
| #define ast_toggle_flag | ( | it, | |
| flag | |||
| ) | if(ast_test_flag(it, flag)) ast_clear_flag(it, flag); else ast_set_flag(it, flag) |
Definition at line 76 of file app_dictate.c.
Referenced by dictate_exec().
| enum dflags |
| Enumerator | |
|---|---|
| DFLAG_RECORD | |
| DFLAG_PLAY | |
| DFLAG_TRUNC | |
| DFLAG_PAUSE | |
Definition at line 63 of file app_dictate.c.
| enum dmodes |
| Enumerator | |
|---|---|
| DMODE_INIT | |
| DMODE_RECORD | |
| DMODE_PLAY | |
Definition at line 70 of file app_dictate.c.
| AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
| "Virtual Dictation Machine" | |||
| ) |
Referenced by load_module().
|
static |
Definition at line 87 of file app_dictate.c.
References ao2_bump, ao2_cleanup, ao2_ref, args, ast_answer(), AST_APP_ARG, ast_app_getdata(), ast_channel_language(), ast_channel_readformat(), ast_channel_stream_set(), ast_clear_flag, ast_closestream(), ast_config_AST_SPOOL_DIR, ast_copy_string(), AST_DECLARE_APP_ARGS, AST_DIGIT_ANY, AST_FILE_MODE, ast_format_slin, AST_FRAME_DTMF, AST_FRAME_VOICE, ast_free, ast_frfree, ast_log, ast_malloc, ast_mkdir(), ast_openstream(), ast_queue_frame(), ast_read(), ast_readframe(), ast_safe_sleep(), ast_say_number(), ast_seekstream(), ast_set_flag, ast_set_read_format(), AST_STANDARD_APP_ARGS, AST_STATE_UP, ast_strdupa, ast_strlen_zero, ast_test_flag, ast_toggle_flag, ast_waitfor(), ast_write(), ast_writefile(), ast_writestream(), DFLAG_PAUSE, DFLAG_PLAY, DFLAG_TRUNC, digit, DMODE_PLAY, DMODE_RECORD, done, ast_frame::frametype, ast_frame_subclass::integer, len(), LOG_WARNING, NULL, parse(), play_and_wait(), ast_frame::samples, and ast_frame::subclass.
Referenced by load_module().
|
static |
Definition at line 353 of file app_dictate.c.
References app, AST_MODULE_INFO_STANDARD_EXTENDED(), ast_register_application_xml, ASTERISK_GPL_KEY, and dictate_exec().
|
static |
Definition at line 78 of file app_dictate.c.
References ast_channel_language(), ast_streamfile(), and ast_waitstream().
Referenced by dictate_exec().
|
static |
Definition at line 346 of file app_dictate.c.
References app, and ast_unregister_application().
|
static |
Definition at line 61 of file app_dictate.c.
Referenced by load_module(), and unload_module().
1.8.13