94 skip_size =
sizeof(int) * framehooks->
count;
96 memset(skip, 0, skip_size);
100 original_frame = frame;
118 if (frame != original_frame) {
127 }
while (frame != original_frame);
138 ast_log(
LOG_ERROR,
"Version '%hu' of framehook interface not what we compiled against (%i)\n",
174 return framehook->
id;
187 if (framehook->
id ==
id) {
226 int moved_framehook_id;
260 if (moved_framehook_id < 0) {
261 ast_log(
LOG_WARNING,
"Failed framehook copy during masquerade. Expect loss of features.\n");
ast_framehook_event_callback event_cb
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
static struct ast_frame * framehook_list_push_event(struct ast_framehook_list *framehooks, struct ast_frame *frame, enum ast_framehook_event event)
int ast_framehook_list_contains_no_active_of_type(struct ast_framehook_list *framehooks, enum ast_frame_type type)
Determine if a framehook list is free of active framehooks consuming a specific type of frame...
void ast_channel_framehooks_set(struct ast_channel *chan, struct ast_framehook_list *value)
static void framehook_detach(struct ast_framehook *framehook, enum framehook_detachment_mode mode)
struct ast_framehook_list * ast_channel_framehooks(const struct ast_channel *chan)
ast_framehook_event
These are the types of events that the framehook's event callback can receive.
int ast_framehook_list_is_empty(struct ast_framehook_list *framehooks)
Determine if an framehook list is empty or not.
struct ast_framehook_list::@394 list
#define AST_LIST_EMPTY(head)
Checks whether the specified list contains any entries.
ast_framehook_destroy_callback destroy_cb
#define AST_LIST_TRAVERSE_SAFE_END
Closes a safe loop traversal block.
void ast_framehook_list_fixup(struct ast_channel *old_chan, struct ast_channel *new_chan)
This is used by the channel API during a masquerade operation to move all mobile framehooks from the ...
int ast_framehook_attach(struct ast_channel *chan, struct ast_framehook_interface *i)
Attach an framehook onto a channel for frame interception.
int ast_framehook_list_destroy(struct ast_channel *chan)
This is used by the channel API to detach and destroy all framehooks on a channel during channel dest...
struct ast_framehook::@393 list
General Asterisk PBX channel definitions.
#define AST_LIST_REMOVE_CURRENT(field)
Removes the current entry from a list during a traversal.
Asterisk internal frame definitions.
A set of macros to manage forward-linked lists.
int ast_framehook_list_contains_no_active(struct ast_framehook_list *framehooks)
Determine if a framehook list is free of active framehooks or not.
void ast_channel_set_unbridged_nolock(struct ast_channel *chan, int value)
Variant of ast_channel_set_unbridged. Use this if the channel is already locked prior to calling...
#define AST_LIST_REMOVE_HEAD(head, field)
Removes and returns the head entry from a list.
AST_LIST_HEAD_NOLOCK(contactliststruct, contact)
#define ast_alloca(size)
call __builtin_alloca to ensure we get gcc builtin semantics
ast_frame_type
Frame types.
#define AST_LIST_INSERT_TAIL(head, elm, field)
Appends a list entry to the tail of a list.
#define AST_FRAMEHOOK_INTERFACE_VERSION
int ast_channel_is_bridged(const struct ast_channel *chan)
Determine if a channel is in a bridge.
#define AST_LIST_TRAVERSE(head, var, field)
Loops over (traverses) the entries in a list.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
ast_framehook_chan_fixup_callback chan_fixup_cb
#define ast_calloc(num, len)
A wrapper for calloc()
struct ast_frame * ast_framehook_list_write_event(struct ast_framehook_list *framehooks, struct ast_frame *frame)
This is used by the channel API push a frame write event to a channel's framehook list...
ast_framehook_chan_fixup_callback chan_breakdown_cb
ast_framehook_consume_callback consume_cb
struct ast_framehook_interface i
framehook_detachment_mode
int ast_framehook_detach(struct ast_channel *chan, int id)
Detach an framehook from a channel.
Data structure associated with a single frame of data.
int detach_and_destroy_me
#define AST_LIST_TRAVERSE_SAFE_BEGIN(head, var, field)
Loops safely over (traverses) the entries in a list.
struct ast_channel * chan
struct ast_frame * ast_framehook_list_read_event(struct ast_framehook_list *framehooks, struct ast_frame *frame)
This is used by the channel API push a frame read event to a channel's framehook list.