Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Go to the source code of this file.
Functions | |
struct ast_multicast_rtp_options * | ast_multicast_rtp_create_options (const char *type, const char *options) |
Create multicast RTP options. More... | |
void | ast_multicast_rtp_free_options (struct ast_multicast_rtp_options *mcast_options) |
Free multicast RTP options. More... | |
struct ast_format * | ast_multicast_rtp_options_get_format (struct ast_multicast_rtp_options *mcast_options) |
Get format specified in multicast options. More... | |
struct ast_multicast_rtp_options * ast_multicast_rtp_create_options | ( | const char * | type, |
const char * | options | ||
) |
Create multicast RTP options.
These are passed to the multicast RTP engine on its creation.
type | The type of multicast RTP, either "basic" or "linksys" |
options | Miscellaneous options |
NULL | Failure |
non-NULL | success |
Definition at line 140 of file res_rtp_multicast.c.
References ast_app_parse_options(), ast_calloc, ast_log, ast_multicast_rtp_free_options(), ast_strlen_zero(), ast_multicast_rtp_options::buf, LOG_WARNING, multicast_rtp_options, NULL, ast_multicast_rtp_options::opt_args, ast_multicast_rtp_options::options, options, ast_multicast_rtp_options::opts, S_OR, type, and ast_multicast_rtp_options::type.
Referenced by multicast_rtp_request().
void ast_multicast_rtp_free_options | ( | struct ast_multicast_rtp_options * | mcast_options | ) |
Free multicast RTP options.
This function is NULL-tolerant
mcast_options | Options to free |
Definition at line 175 of file res_rtp_multicast.c.
References ast_free.
Referenced by ast_multicast_rtp_create_options(), and multicast_rtp_request().
struct ast_format * ast_multicast_rtp_options_get_format | ( | struct ast_multicast_rtp_options * | mcast_options | ) |
Get format specified in multicast options.
Multicast options allow for a format to be selected. This function accesses the selected format and creates an ast_format structure for it.
mcast_options | The options where a codec was specified |
NULL | No format specified in the options |
non-NULL | The format to use for communication |
Definition at line 180 of file res_rtp_multicast.c.
References ast_format_cache_get, ast_strlen_zero(), ast_test_flag, NULL, OPT_ARG_CODEC, ast_multicast_rtp_options::opt_args, OPT_CODEC, and ast_multicast_rtp_options::opts.
Referenced by multicast_rtp_request().