Asterisk - The Open Source Telephony Project  18.5.0
multicast_rtp.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2016, Digium, Inc.
5  *
6  * Mark Michelson <[email protected]>
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 MULTICAST_RTP_H_
20 #define MULTICAST_RTP_H_
22 
23 /*!
24  * \brief Create multicast RTP options.
25  *
26  * These are passed to the multicast RTP engine on its creation.
27  *
28  * \param type The type of multicast RTP, either "basic" or "linksys"
29  * \param options Miscellaneous options
30  * \retval NULL Failure
31  * \retval non-NULL success
32  */
34  const char *options);
35 
36 /*!
37  * \brief Free multicast RTP options
38  *
39  * This function is NULL-tolerant
40  *
41  * \param mcast_options Options to free
42  */
44 
45 /*!
46  * \brief Get format specified in multicast options
47  *
48  * Multicast options allow for a format to be selected.
49  * This function accesses the selected format and creates
50  * an ast_format structure for it.
51  *
52  * \param mcast_options The options where a codec was specified
53  * \retval NULL No format specified in the options
54  * \revval non-NULL The format to use for communication
55  */
57 
58 #endif /* MULTICAST_RTP_H_ */
static const char type[]
Definition: chan_ooh323.c:109
Definition of a media format.
Definition: format.c:43
struct ast_format * ast_multicast_rtp_options_get_format(struct ast_multicast_rtp_options *mcast_options)
Get format specified in multicast options.
struct ast_multicast_rtp_options * ast_multicast_rtp_create_options(const char *type, const char *options)
Create multicast RTP options.
void ast_multicast_rtp_free_options(struct ast_multicast_rtp_options *mcast_options)
Free multicast RTP options.
static struct test_options options