115 static int jb_helper(
struct ast_channel *chan,
const char *cmd,
char *data,
const char *value)
120 ast_log(LOG_WARNING,
"No channel was provided to %s function.\n", cmd);
128 if (!ast_strlen_zero(data)) {
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);
138 if (!ast_strlen_zero(value) && strcasecmp(value,
"default")) {
149 if (!ast_strlen_zero(args.max_size)) {
154 if (!ast_strlen_zero(args.resync_threshold)) {
157 args.resync_threshold);
159 if (!ast_strlen_zero(args.target_extra)) {
164 if (!ast_strlen_zero(args.sync_video)) {
170 ast_log(LOG_WARNING,
"Invalid jitterbuffer parameters %s\n", value);
181 .
name =
"JITTERBUFFER",
185 static int unload_module(
void)
190 static int load_module(
void)
196 AST_MODULE_INFO_STANDARD(
ASTERISK_GPL_KEY,
"Jitter buffer for read side of channel.");
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
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.
Common implementation-independent jitterbuffer stuff.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
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.
General Asterisk PBX channel definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Data structure associated with a custom dialplan function.
Asterisk internal frame definitions.
long target_extra
amount of additional jitterbuffer adjustment
Core PBX routines and definitions.
Module has failed to load, may be in an inconsistent state.
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
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.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
General jitterbuffer configuration.
#define ast_custom_function_register(acf)
Register a custom function.
Timing source management.
#define AST_APP_ARG(name)
Define an application argument.