Asterisk - The Open Source Telephony Project GIT-master-8924258
|
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 = AST_BUILDOPT_SUM, .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 172 of file app_controlplayback.c.
anonymous enum |
Enumerator | |
---|---|
OPT_ARG_OFFSET | |
OPT_ARG_ARRAY_LEN |
Definition at line 176 of file app_controlplayback.c.
|
static |
Definition at line 355 of file app_controlplayback.c.
|
static |
Definition at line 355 of file app_controlplayback.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 355 of file app_controlplayback.c.
|
static |
Definition at line 203 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, and stop.
Referenced by load_module().
|
static |
Definition at line 292 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 192 of file app_controlplayback.c.
References ast_strlen_zero().
Referenced by controlplayback_exec().
|
static |
Definition at line 187 of file app_controlplayback.c.
Referenced by controlplayback_exec().
|
static |
Definition at line 345 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 335 of file app_controlplayback.c.
References app, ast_manager_unregister(), and ast_unregister_application().
|
static |
Definition at line 355 of file app_controlplayback.c.
|
static |
Definition at line 170 of file app_controlplayback.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 355 of file app_controlplayback.c.
|
static |
Definition at line 185 of file app_controlplayback.c.
Referenced by controlplayback_exec().