24 #define DEFAULT_MAX_FORWARDS 20 64 .
type =
"mfaled-interface",
86 mf_datastore->
data = mf;
115 mf = mf_datastore->
data;
131 mf = mf_datastore->
data;
145 mf = mf_datastore->
data;
161 mf = mf_datastore->
data;
int ast_max_forwards_decrement(struct ast_channel *chan)
Decrement the max forwards count for a particular channel.
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
#define DEFAULT_MAX_FORWARDS
int ast_max_forwards_set(struct ast_channel *chan, int starting_count)
Set the starting max forwards for a particular channel.
int ast_max_forwards_get(struct ast_channel *chan)
Get the current max forwards for a particular channel.
Structure for a data store type.
static void max_forwards_destroy(void *data)
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_datastore_free(struct ast_datastore *datastore)
Free a data store object.
static struct max_forwards * max_forwards_alloc(int starting_count, int current_count)
General Asterisk PBX channel definitions.
static void * max_forwards_duplicate(void *data)
#define ast_malloc(len)
A wrapper for malloc()
int ast_max_forwards_reset(struct ast_channel *chan)
Reset the max forwards on a channel to its starting value.
static struct ast_datastore * max_forwards_datastore_alloc(struct ast_channel *chan, int starting_count)
Channel datastore data for max forwards.
#define DATASTORE_INHERIT_FOREVER
const struct ast_datastore_info max_forwards_info
#define ast_datastore_alloc(info, uid)
static struct ast_datastore * max_forwards_datastore_find_or_alloc(struct ast_channel *chan)
int ast_channel_datastore_add(struct ast_channel *chan, struct ast_datastore *datastore)
Add a datastore to a channel.