Asterisk - The Open Source Telephony Project
18.5.0
|
Trivial application to control playback of a sound file. More...
#include "asterisk.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "asterisk/manager.h"
#include "asterisk/utils.h"
#include "asterisk/astobj2.h"
Go to the source code of this file.
Enumerations | |
enum | { OPT_OFFSET = (1 << 1) } |
enum | { OPT_ARG_OFFSET = 0, OPT_ARG_ARRAY_LEN } |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | controlplayback_exec (struct ast_channel *chan, const char *data) |
static int | controlplayback_manager (struct mansession *s, const struct message *m) |
static int | is_argument (const char *haystack, int needle) |
static int | is_on_phonepad (char key) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Control Playback Application" , .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 = "30ef0c93b36035ec78c9cfd712d36d9b" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const char | app [] = "ControlPlayback" |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const struct ast_app_option | cpb_opts [128] = { [ 'o' ] = { .flag = OPT_OFFSET , .arg_index = OPT_ARG_OFFSET + 1 }, } |
Trivial application to control playback of a sound file.
Definition in file app_controlplayback.c.
anonymous enum |
Enumerator | |
---|---|
OPT_OFFSET |
Definition at line 166 of file app_controlplayback.c.
anonymous enum |
Enumerator | |
---|---|
OPT_ARG_OFFSET | |
OPT_ARG_ARRAY_LEN |
Definition at line 170 of file app_controlplayback.c.
|
static |
Definition at line 349 of file app_controlplayback.c.
|
static |
Definition at line 349 of file app_controlplayback.c.
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 349 of file app_controlplayback.c.
|
static |
Definition at line 197 of file app_controlplayback.c.
References args, AST_APP_ARG, ast_app_parse_options(), AST_CONTROL_STREAM_STOP, ast_control_streamfile(), ast_debug, AST_DECLARE_APP_ARGS, ast_log, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero, ast_test_flag, cpb_opts, digit, is_argument(), is_on_phonepad(), LOG_WARNING, NULL, OPT_ARG_ARRAY_LEN, OPT_ARG_OFFSET, OPT_OFFSET, options, pbx_builtin_setvar_helper(), skipms, stop, and tmp().
Referenced by load_module().
|
static |
Definition at line 286 of file app_controlplayback.c.
References ast_channel_get_by_name(), ast_channel_unref, AST_CONTROL_STREAM_FORWARD, AST_CONTROL_STREAM_RESTART, AST_CONTROL_STREAM_REVERSE, AST_CONTROL_STREAM_STOP, AST_CONTROL_STREAM_SUSPEND, ast_queue_control(), ast_strlen_zero, astman_get_header(), astman_send_ack(), astman_send_error(), and NULL.
Referenced by load_module().
|
static |
Definition at line 186 of file app_controlplayback.c.
References ast_strlen_zero.
Referenced by controlplayback_exec().
|
static |
Definition at line 181 of file app_controlplayback.c.
Referenced by controlplayback_exec().
|
static |
Definition at line 339 of file app_controlplayback.c.
References app, ast_manager_register_xml, ast_register_application_xml, controlplayback_exec(), controlplayback_manager(), and EVENT_FLAG_CALL.
|
static |
Definition at line 329 of file app_controlplayback.c.
References app, ast_manager_unregister(), and ast_unregister_application().
|
static |
Definition at line 349 of file app_controlplayback.c.
|
static |
Definition at line 164 of file app_controlplayback.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 349 of file app_controlplayback.c.
|
static |
Definition at line 179 of file app_controlplayback.c.
Referenced by controlplayback_exec().