73 .
type =
"hold_intercept",
89 data = datastore->
data;
152 .disable_inheritance = 1,
204 if (!strcasecmp(data,
"set")) {
206 }
else if (!strcasecmp(data,
"remove")) {
218 .
name =
"HOLD_INTERCEPT",
struct stasis_message_type * ast_channel_hold_type(void)
Message type for when a channel is placed on hold.
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
struct stasis_message_type * ast_channel_unhold_type(void)
Message type for when a channel is removed from hold.
static int hold_intercept_framehook_consume(void *data, enum ast_frame_type type)
Callback function which informs upstream if we are consuming a frame of a specific type...
void ast_channel_publish_cached_blob(struct ast_channel *chan, struct stasis_message_type *type, struct ast_json *blob)
Publish a channel blob message using the latest snapshot from the cache.
static struct ast_custom_function hold_intercept_function
Definition of the HOLD_INTERCEPT function.
Stasis Message Bus API. See Stasis Message Bus API for detailed documentation.
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.
static int remove_hold_intercept(struct ast_channel *chan)
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 int set_hold_intercept(struct ast_channel *chan)
static int hold_intercept_fn_write(struct ast_channel *chan, const char *function, char *data, const char *value)
static int load_module(void)
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
#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.
#define SCOPED_CHANNELLOCK(varname, chan)
scoped lock specialization for channels.
General Asterisk PBX channel definitions.
Data structure associated with a custom dialplan function.
Asterisk internal frame definitions.
Core PBX routines and definitions.
ast_frame_type
Frame types.
#define AST_FRAMEHOOK_INTERFACE_VERSION
static struct ast_frame * hold_intercept_framehook(struct ast_channel *chan, struct ast_frame *f, enum ast_framehook_event event, void *data)
Frame hook that is called to intercept hold/unhold.
#define ast_calloc(num, len)
A wrapper for calloc()
Module has failed to load, may be in an inconsistent state.
Private data structure used with the function's datastore.
static const struct ast_datastore_info hold_intercept_datastore
The channel datastore the function uses to store state.
struct ast_frame ast_null_frame
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
static int unload_module(void)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
int ast_channel_datastore_add(struct ast_channel *chan, struct ast_datastore *datastore)
Add a datastore to a channel.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
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.