61 memset(attr, 0,
sizeof(*attr));
98 for (attrib = attribs; *attrib; ++attrib) {
99 *attrib = tolower(*attrib);
102 if (sscanf(attribs,
"maxaveragebitrate=%30u", &
val) == 1) {
105 if (sscanf(attribs,
"usedtx=%30u", &
val) == 1) {
108 if (sscanf(attribs,
"useinbandfec=%30u", &
val) == 1) {
161 if (!attr1 || !attr2) {
169 attr_res->
dtx = attr1->
dtx && attr2->
dtx ? 1 : 0;
173 attr_res->
fec = attr1->
fec && attr2->
fec ? 1 : 0;
189 if (sscanf(
value,
"%30u", &
val) != 1) {
201 if (!strcasecmp(
name,
"max_bitrate")) {
203 }
else if (!strcasecmp(
name,
"dtx")) {
205 }
else if (!strcasecmp(
name,
"fec")) {
207 }
else if (!strcasecmp(
name,
"packetloss_percentage")) {
221 if (!strcasecmp(
name,
"max_bitrate")) {
223 }
else if (!strcasecmp(
name,
"dtx")) {
225 }
else if (!strcasecmp(
name,
"fec")) {
227 }
else if (!strcasecmp(
name,
"packetloss_percentage")) {
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define ast_malloc(len)
A wrapper for malloc()
Support for logging to various files, console and syslog Configuration in file logger....
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODPRI_CHANNEL_DEPEND
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
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.
Support for dynamic strings.
SILK attribute structure.
unsigned int packetloss_percentage