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.
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.
SILK attribute structure.
unsigned int packetloss_percentage
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define ast_malloc(len)
A wrapper for malloc()
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
Module has failed to load, may be in an inconsistent state.
Support for logging to various files, console and syslog Configuration in file logger.conf.
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
static snd_pcm_format_t format