41 static void siren7_destroy(
struct ast_format *format)
51 static struct ast_format *siren7_parse_sdp_fmtp(
const struct ast_format *format,
const char *attributes)
57 for (attrib = attribs; *attrib; ++attrib) {
58 *attrib = tolower(*attrib);
61 if (sscanf(attribs,
"bitrate=%30u", &val) == 1) {
63 ast_log(LOG_WARNING,
"Got Siren7 offer at %u bps, but only 32000 bps supported; ignoring.\n", val);
72 static void siren7_generate_sdp_fmtp(
const struct ast_format *format,
unsigned int payload,
struct ast_str **str)
79 .format_clone = siren7_clone,
80 .format_parse_sdp_fmtp = siren7_parse_sdp_fmtp,
81 .format_generate_sdp_fmtp = siren7_generate_sdp_fmtp,
84 static int load_module(
void)
93 static int unload_module(
void)
98 AST_MODULE_INFO(
ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER,
"Siren7 Format Attribute Module",
99 .support_level = AST_MODULE_SUPPORT_CORE,
101 .unload = unload_module,
Asterisk main include file. File version handling, generic pbx functions.
String manipulation functions.
int ast_str_append(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Append to a thread local dynamic string.
#define ao2_bump(obj)
Bump refcount on an AO2 object by one, returning the object.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Support for dynamic strings.
Support for logging to various files, console and syslog Configuration in file logger.conf.
Module has failed to load, may be in an inconsistent state.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.