109 .
type =
"frametrace",
165 if (!(framedata =
ast_calloc(1,
sizeof(*framedata)))) {
169 interface.
data = framedata;
171 if (!strcasecmp(data,
"black")) {
185 id = datastore->
data;
342 ast_verbose(
"SubClass: STREAM_TOPOLOGY_REQUEST_CHANGE\n");
345 ast_verbose(
"SubClass: STREAM_TOPOLOGY_CHANGED\n");
348 ast_verbose(
"SubClass: STREAM_TOPOLOGY_SOURCE_CHANGED\n");
431 .
name =
"FRAME_TRACE",
#define ast_channel_lock(chan)
Main Channel structure associated with a channel.
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.
int ast_framehook_detach(struct ast_channel *chan, int framehook_id)
Detach an framehook from a channel.
Structure for a data store type.
ast_control_frame_type
Internal control frame subtype field values.
void ast_verbose(const char *fmt,...)
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.
static struct @209 frametype2str[]
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.
struct ast_frame_subclass subclass
static void show_frame(struct video_desc *env, int out)
#define ast_strlen_zero(foo)
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)
Data structure associated with a custom dialplan function.
Core PBX routines and definitions.
ast_frame_type
Frame types.
int values[ARRAY_LEN(frametype2str)]
AST_MODULE_INFO_STANDARD_EXTENDED(ASTERISK_GPL_KEY, "Frame Trace for internal ast_frame debugging.")
#define AST_FRAMEHOOK_INTERFACE_VERSION
char * strcasestr(const char *, const char *)
#define ast_channel_unlock(chan)
#define ast_calloc(num, len)
A wrapper for calloc()
Module has failed to load, may be in an inconsistent state.
const char * ast_channel_name(const struct ast_channel *chan)
Data structure associated with a single frame of data.
#define ast_datastore_alloc(info, uid)
union ast_frame::@263 data
enum ast_frame_type frametype
struct ast_format * format
#define ASTERISK_GPL_KEY
The text the key() function should return.
static int unload_module(void)
Asterisk module definitions.
static const struct ast_datastore_info frame_trace_datastore
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.