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);
181 .
name =
"JITTERBUFFER",
Common implementation-independent jitterbuffer stuff.
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.
void ast_jb_conf_default(struct ast_jb_conf *conf)
Sets the contents of an ast_jb_conf struct to the default jitterbuffer settings.
int ast_jb_read_conf(struct ast_jb_conf *conf, const char *varname, const char *value)
Sets jitterbuffer configuration property.
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
General Asterisk PBX channel definitions.
static struct ast_custom_function jb_function
static int jb_helper(struct ast_channel *chan, const char *cmd, char *data, const char *value)
static int load_module(void)
static int unload_module(void)
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
Asterisk internal frame definitions.
Asterisk module definitions.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
#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.
Core PBX routines and definitions.
#define ast_custom_function_register(acf)
Register a custom function.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
Main Channel structure associated with a channel.
Data structure associated with a custom dialplan function.
General jitterbuffer configuration.
long target_extra
amount of additional jitterbuffer adjustment
long max_size
Max size of the jitterbuffer implementation.
long resync_threshold
Resynchronization threshold of the jitterbuffer implementation.
Timing source management.