Asterisk Source/Pbx Config
AsteriskSource/PbxConfig ¶* pbx/pbx_config.c
* load_module
struct ast_context { char name[AST_MAX_EXTENSION]; pthread_mutex_t lock; struct ast_exten *root; struct ast_context *next; };
/* An extension context */ struct ast_context { /* Name of the context */ char name[AST_MAX_EXTENSION]; /* A lock to prevent multiple threads from clobbering the context */ pthread_mutex_t lock; /* The root of the list of extensions */ struct ast_exten *root; /* Link them together */ struct ast_context *next; }; * struct ast_context *ast_context_create(char *name)
int replace, char *extension, int priority,
char *application, void *data, void (*datad)(void *))
/* An extension */ struct ast_exten { char exten[AST_MAX_EXTENSION]; int priority; /* An extension */ struct ast_context *parent; /* Application to execute */ char app[AST_MAX_EXTENSION]; /* Data to use */ void *data; /* Data destructor */ void (*datad)(void *); /* Next highest priority with our extension */ struct ast_exten *peer; /* Extension with a greater ID */ struct ast_exten *next; };
config.c ¶* struct ast_config *ast_load(char *configfile)
struct ast_config { /* Maybe this structure isn't necessary but we'll keep it for now */ struct ast_category *root; };
struct ast_category { char name[80]; struct ast_variable *root; struct ast_category *next; };
struct ast_variable { char *name; char *value; struct ast_variable *next; };
|
A man who turns green has eschewed protein. |