24 #ifndef _ASTERISK_BRIDGING_FEATURES_H
25 #define _ASTERISK_BRIDGING_FEATURES_H
27 #if defined(__cplusplus) || defined(c_plusplus)
69 #define MAXIMUM_DTMF_FEATURE_STRING 8
94 unsigned int usable:1;
294 #if defined(__cplusplus) || defined(c_plusplus)
int(* ast_bridge_features_hook_callback)(struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, void *hook_pvt)
Features hook callback type.
Main Channel structure associated with a channel.
static const char config[]
Structure that contains features information.
int ast_bridge_features_enable(struct ast_bridge_features *features, enum ast_bridge_builtin_feature feature, const char *dtmf, void *config)
Enable a built in feature on a bridge features structure.
int ast_bridge_features_init(struct ast_bridge_features *features)
Initialize bridge features structure.
int ast_bridge_features_unregister(enum ast_bridge_builtin_feature feature)
Unregister a handler for a built in feature.
char dtmf[MAXIMUM_DTMF_FEATURE_STRING]
int ast_bridge_features_hook(struct ast_bridge_features *features, const char *dtmf, ast_bridge_features_hook_callback callback, void *hook_pvt)
Attach a custom hook to a bridge features structure.
#define MAXIMUM_DTMF_FEATURE_STRING
Maximum length of a DTMF feature string.
#define AST_LIST_HEAD_NOLOCK(name, type)
Defines a structure to be used to hold a list of specified type (with no lock).
Structure that contains information about a bridge.
Structure used to handle boolean flags.
Structure that contains configuration information for the attended transfer built in feature...
Structure that contains information regarding a channel in a bridge.
AST_LIST_ENTRY(ast_bridge_features_hook) entry
ast_bridge_feature_flags
Flags used for bridge features.
ast_bridge_features_hook_callback callback
Structure that is the essence of a features hook.
static char context[AST_MAX_CONTEXT]
int ast_bridge_features_register(enum ast_bridge_builtin_feature feature, ast_bridge_features_hook_callback callback, const char *dtmf)
Register a handler for a built in feature.
Structure that contains configuration information for the blind transfer built in feature...
int ast_bridge_dtmf_stream(struct ast_bridge *bridge, const char *dtmf, struct ast_channel *chan)
Play a DTMF stream into a bridge, optionally not to a given channel.
int ast_bridge_features_cleanup(struct ast_bridge_features *features)
Clean up the contents of a bridge features structure.
ast_bridge_builtin_feature
Built in features.
int ast_bridge_features_set_flag(struct ast_bridge_features *features, enum ast_bridge_feature_flags flag)
Set a flag on a bridge features structure.