Asterisk - The Open Source Telephony Project GIT-master-d856a3e
|
Stasis Application Snoop API. See StasisApplication API" for detailed documentation. More...
#include "asterisk/stasis_app.h"
Go to the source code of this file.
Enumerations | |
enum | stasis_app_snoop_direction { STASIS_SNOOP_DIRECTION_NONE = 0 , STASIS_SNOOP_DIRECTION_OUT , STASIS_SNOOP_DIRECTION_IN , STASIS_SNOOP_DIRECTION_BOTH } |
Directions for audio stream flow. More... | |
Functions | |
struct ast_channel * | stasis_app_control_snoop (struct ast_channel *chan, enum stasis_app_snoop_direction spy, enum stasis_app_snoop_direction whisper, const char *app, const char *app_args, const char *snoop_id) |
Create a snoop on the provided channel. More... | |
Stasis Application Snoop API. See StasisApplication API" for detailed documentation.
Definition in file stasis_app_snoop.h.
Directions for audio stream flow.
Definition at line 34 of file stasis_app_snoop.h.
struct ast_channel * stasis_app_control_snoop | ( | struct ast_channel * | chan, |
enum stasis_app_snoop_direction | spy, | ||
enum stasis_app_snoop_direction | whisper, | ||
const char * | app, | ||
const char * | app_args, | ||
const char * | snoop_id | ||
) |
Create a snoop on the provided channel.
chan | Channel to snoop on. |
spy | Direction of media that should be spied on. |
whisper | Direction of media that should be whispered into. |
app | Stasis application to execute on the snoop channel. |
app_args | Stasis application arguments. |
snoop_id |
NULL | if snoop channel couldn't be created. |
Definition at line 303 of file res_stasis_snoop.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_cleanup, ao2_ref, app, ast_atomic_fetchadd_int(), AST_AUDIOHOOK_TYPE_SPY, AST_AUDIOHOOK_TYPE_WHISPER, ast_calloc, ast_channel_alloc, ast_channel_nativeformats_set(), ast_channel_ref, ast_channel_set_fd(), ast_channel_set_rawreadformat(), ast_channel_set_rawwriteformat(), ast_channel_set_readformat(), ast_channel_set_writeformat(), ast_channel_tech_pvt_set(), ast_channel_tech_set(), ast_channel_uniqueid(), ast_channel_unlock, ast_format_cap_alloc, ast_format_cap_append, AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_get_sample_rate(), AST_FRAME_VOICE, ast_hangup(), ast_pthread_create_detached_background, AST_STATE_UP, ast_str_append(), ast_str_create, ast_str_set(), ast_strlen_zero(), ast_timer_fd(), ast_timer_open(), ast_timer_set_rate(), chan_idx, NULL, publish_chanspy_message(), RAII_VAR, snoop_destroy(), snoop_determine_format(), SNOOP_INTERVAL, snoop_setup_audiohook(), snoop_stasis_thread(), snoop_tech, STASIS_SNOOP_DIRECTION_NONE, thread, and ast_assigned_ids::uniqueid.
Referenced by ari_channels_handle_snoop_channel().