Put a jitterbuffer on the read side of a channel.
More...
Go to the source code of this file.
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Jitter buffer for read side of channel." , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_custom_function | jb_function |
|
Put a jitterbuffer on the read side of a channel.
- Author
- David Vossel dvoss.nosp@m.el@d.nosp@m.igium.nosp@m..com
Definition in file func_jitterbuffer.c.
◆ __reg_module()
static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ jb_helper()
static int jb_helper |
( |
struct ast_channel * |
chan, |
|
|
const char * |
cmd, |
|
|
char * |
data, |
|
|
const char * |
value |
|
) |
| |
|
static |
Definition at line 115 of file func_jitterbuffer.c.
References args, AST_APP_ARG, ast_copy_string(), AST_DECLARE_APP_ARGS, ast_jb_conf_default(), ast_jb_create_framehook(), ast_jb_read_conf(), ast_log, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero, ast_jb_conf::impl, LOG_WARNING, ast_jb_conf::max_size, parse(), ast_jb_conf::resync_threshold, and ast_jb_conf::target_extra.
129 if (strcasecmp(data,
"fixed") &&
130 strcasecmp(data,
"adaptive") &&
131 strcasecmp(data,
"disabled")) {
132 ast_log(
LOG_WARNING,
"Unknown Jitterbuffer type %s. Failed to create jitterbuffer.\n", data);
157 args.resync_threshold);
void ast_jb_create_framehook(struct ast_channel *chan, struct ast_jb_conf *jb_conf, int prefer_existing)
Applies a jitterbuffer framehook to a channel based on a provided jitterbuffer config.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
int ast_jb_read_conf(struct ast_jb_conf *conf, const char *varname, const char *value)
Sets jitterbuffer configuration property.
#define ast_strlen_zero(foo)
void ast_jb_conf_default(struct ast_jb_conf *conf)
Sets the contents of an ast_jb_conf struct to the default jitterbuffer settings.
long resync_threshold
Resynchronization threshold of the jitterbuffer implementation.
#define ast_strdupa(s)
duplicate a string in memory from the stack
long target_extra
amount of additional jitterbuffer adjustment
static void parse(struct mgcp_request *req)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
long max_size
Max size of the jitterbuffer implementation.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
General jitterbuffer configuration.
#define AST_APP_ARG(name)
Define an application argument.
◆ load_module()
static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Jitter buffer for read side of channel." , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
|
static |
◆ ast_module_info
◆ jb_function
Initial value:= {
.name = "JITTERBUFFER",
}
static int jb_helper(struct ast_channel *chan, const char *cmd, char *data, const char *value)
Definition at line 180 of file func_jitterbuffer.c.