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