Asterisk - The Open Source Telephony Project GIT-master-7e7a603
stasis_app_snoop.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2013, Digium, Inc.
5 *
6 * Joshua Colp <jcolp@digium.com>
7 *
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
13 *
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
17 */
18
19#ifndef _ASTERISK_STASIS_APP_SNOOP_H
20#define _ASTERISK_STASIS_APP_SNOOP_H
21
22/*! \file
23 *
24 * \brief Stasis Application Snoop API. See \ref res_stasis "Stasis
25 * Application API" for detailed documentation.
26 *
27 * \author Joshua Colp <jcolp@digium.com>
28 * \since 12
29 */
30
31#include "asterisk/stasis_app.h"
32
33/*! \brief Directions for audio stream flow */
35 /*! \brief No direction */
37 /*! \brief Audio stream out to the channel */
39 /*! \brief Audio stream in from the channel */
41 /*! \brief Audio stream to AND from the channel */
43};
44
45/*!
46 * \brief Create a snoop on the provided channel.
47 *
48 * \param chan Channel to snoop on.
49 * \param spy Direction of media that should be spied on.
50 * \param whisper Direction of media that should be whispered into.
51 * \param app Stasis application to execute on the snoop channel.
52 * \param app_args Stasis application arguments.
53 * \param snoop_id
54 * \return ast_channel ast_channel_unref() when done.
55 * \retval NULL if snoop channel couldn't be created.
56 */
59 const char *app, const char *app_args, const char *snoop_id);
60
61#endif /* _ASTERISK_STASIS_APP_SNOOP_H */
static const char app[]
Definition: app_adsiprog.c:56
Stasis Application API. See Stasis Application API for detailed documentation.
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.
stasis_app_snoop_direction
Directions for audio stream flow.
@ STASIS_SNOOP_DIRECTION_IN
Audio stream in from the channel.
@ STASIS_SNOOP_DIRECTION_OUT
Audio stream out to the channel.
@ STASIS_SNOOP_DIRECTION_NONE
No direction.
@ STASIS_SNOOP_DIRECTION_BOTH
Audio stream to AND from the channel.
Main Channel structure associated with a channel.