Asterisk - The Open Source Telephony Project GIT-master-b023714
|
Stream echo application. More...
#include "asterisk.h"
#include "asterisk/app.h"
#include "asterisk/conversions.h"
#include "asterisk/file.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/stream.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
static int | stream_echo_exec (struct ast_channel *chan, const char *data) |
static int | stream_echo_perform (struct ast_channel *chan, struct ast_stream_topology *topology, enum ast_media_type type) |
static struct ast_stream_topology * | stream_echo_topology_alloc (struct ast_stream_topology *original, unsigned int num, enum ast_media_type type) |
static int | stream_echo_write (struct ast_channel *chan, struct ast_frame *frame, enum ast_media_type type, int one_to_one) |
static int | stream_echo_write_error (struct ast_channel *chan, struct ast_frame *frame, int pos) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Stream Echo Application" , .key = ASTERISK_GPL_KEY , .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 [] = "StreamEcho" |
static const struct ast_module_info * | ast_module_info = &__mod_info |
Stream echo application.
Definition in file app_stream_echo.c.
|
static |
Definition at line 348 of file app_stream_echo.c.
|
static |
Definition at line 348 of file app_stream_echo.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 348 of file app_stream_echo.c.
|
static |
Definition at line 343 of file app_stream_echo.c.
References app, ast_register_application_xml, and stream_echo_exec().
|
static |
Definition at line 287 of file app_stream_echo.c.
References args, AST_APP_ARG, ast_channel_get_stream_topology(), ast_codec_media_type2str(), AST_DECLARE_APP_ARGS, ast_log, ast_media_type_from_str(), AST_MEDIA_TYPE_UNKNOWN, AST_MEDIA_TYPE_VIDEO, AST_STANDARD_APP_ARGS, ast_str_to_uint(), ast_strdupa, ast_stream_topology_free(), ast_strlen_zero(), LOG_ERROR, NULL, stream_echo_perform(), stream_echo_topology_alloc(), and type.
Referenced by load_module().
|
static |
Definition at line 157 of file app_stream_echo.c.
References ast_channel_name(), ast_channel_request_stream_topology_change(), AST_CONTROL_SRCCHANGE, AST_CONTROL_STREAM_TOPOLOGY_CHANGED, AST_CONTROL_VIDUPDATE, AST_FRAME_CONTROL, AST_FRAME_DTMF, AST_FRAME_MODEM, AST_FRAME_NULL, AST_FRAME_VIDEO, ast_frfree, ast_log, ast_read_stream(), ast_waitfor(), ast_frame::delivery, ast_frame::frametype, ast_frame_subclass::integer, LOG_WARNING, NULL, stream_echo_write(), ast_frame::subclass, and type.
Referenced by stream_echo_exec().
|
static |
Definition at line 225 of file app_stream_echo.c.
References ast_stream_clone(), ast_stream_free(), ast_stream_get_state(), ast_stream_get_type(), ast_stream_set_state(), AST_STREAM_STATE_REMOVED, AST_STREAM_STATE_SENDONLY, AST_STREAM_STATE_SENDRECV, ast_stream_topology_alloc(), ast_stream_topology_append_stream(), ast_stream_topology_free(), ast_stream_topology_get_count(), ast_stream_topology_get_stream(), NULL, and type.
Referenced by stream_echo_exec().
|
static |
Definition at line 102 of file app_stream_echo.c.
References ast_channel_get_stream_topology(), ast_channel_is_multistream(), ast_format_get_type(), ast_stream_get_type(), ast_stream_topology_get_count(), ast_stream_topology_get_stream(), ast_write_stream(), ast_frame_subclass::format, stream_echo_write_error(), ast_frame::stream_num, ast_frame::subclass, and type.
Referenced by stream_echo_perform().
|
static |
Definition at line 81 of file app_stream_echo.c.
References ast_channel_get_default_stream(), ast_channel_get_stream_topology(), ast_channel_name(), ast_codec_media_type2str(), ast_format_get_type(), ast_frame_type2str(), ast_log, ast_stream_get_position(), ast_stream_get_type(), ast_stream_topology_get_stream(), ast_frame_subclass::format, ast_frame::frametype, LOG_ERROR, and ast_frame::subclass.
Referenced by stream_echo_write().
|
static |
Definition at line 338 of file app_stream_echo.c.
References app, and ast_unregister_application().
|
static |
Definition at line 348 of file app_stream_echo.c.
|
static |
Definition at line 79 of file app_stream_echo.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 348 of file app_stream_echo.c.