36 #include "asterisk/module.h"
109 .
type =
"frametrace",
165 if (!(framedata =
ast_calloc(1,
sizeof(*framedata)))) {
169 interface.
data = framedata;
171 if (!strcasecmp(data,
"black")) {
185 id = datastore->
data;
369 .
name =
"FRAME_TRACE",
union ast_frame_subclass subclass
#define ast_channel_lock(chan)
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
static struct ast_frame * hook_event_cb(struct ast_channel *chan, struct ast_frame *frame, enum ast_framehook_event event, void *data)
static struct ast_custom_function frame_trace_function
Asterisk main include file. File version handling, generic pbx functions.
static void print_frame(struct ast_frame *frame)
static int load_module(void)
static void hook_destroy_cb(void *framedata)
ast_framehook_event
These are the types of events that the framehook's event callback can receive.
void ast_verbose(const char *fmt,...)
int ast_framehook_detach(struct ast_channel *chan, int framehook_id)
Detach an framehook from a channel.
Structure for a data store type.
static struct ast_datastore_info frame_trace_datastore
Structure for a data store object.
struct ast_datastore * ast_channel_datastore_find(struct ast_channel *chan, const struct ast_datastore_info *info, const char *uid)
Find a datastore on a channel.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
int ast_datastore_free(struct ast_datastore *datastore)
Free a data store object.
static void show_frame(struct video_desc *env, int out)
int ast_framehook_attach(struct ast_channel *chan, struct ast_framehook_interface *i)
Attach an framehook onto a channel for frame interception.
static void datastore_destroy_cb(void *data)
General Asterisk PBX channel definitions.
static int frame_trace_helper(struct ast_channel *chan, const char *cmd, char *data, const char *value)
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Data structure associated with a custom dialplan function.
Core PBX routines and definitions.
int values[ARRAY_LEN(frametype2str)]
ast_control_frame_type
Internal control frame subtype field values.
char * ast_getformatname(format_t format)
Get the name of a format.
#define AST_FRAMEHOOK_INTERFACE_VERSION
const ast_string_field name
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
struct ast_datastore * ast_datastore_alloc(const struct ast_datastore_info *info, const char *uid)
#define ast_channel_unlock(chan)
ast_frame_type
Frame types.
Data structure associated with a single frame of data.
enum ast_frame_type frametype
#define ASTERISK_GPL_KEY
The text the key() function should return.
static int unload_module(void)
char * strcasestr(const char *, const char *)
static struct @133 frametype2str[]
union ast_frame::@172 data
int ast_channel_datastore_add(struct ast_channel *chan, struct ast_datastore *datastore)
Add a datastore to a channel.
int ast_channel_datastore_remove(struct ast_channel *chan, struct ast_datastore *datastore)
Remove a datastore from a channel.
#define ast_custom_function_register(acf)
Register a custom function.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.