41 #define MODULE_DESCRIPTION "SNMP [Sub]Agent for Asterisk" 71 if (strcasecmp(cat,
"general") == 0) {
73 if (strcasecmp(var->
name,
"subagent") == 0) {
83 }
else if (strcasecmp(var->
name,
"enabled") == 0) {
119 ast_verb(1,
"Loading [Sub]Agent Module\n");
130 ast_verb(1,
"Unloading [Sub]Agent Module\n");
struct ast_variable * next
void * agent_thread(void *arg)
Asterisk main include file. File version handling, generic pbx functions.
static int res_snmp_enabled
struct ast_variable * ast_variable_browse(const struct ast_config *config, const char *category_name)
#define CONFIG_STATUS_FILEINVALID
Structure for variables, used for configurations and for channel variables.
static int load_config(void)
Load res_snmp.conf config file.
char * ast_category_browse(struct ast_config *config, const char *prev_name)
Browse categories.
#define ast_verb(level,...)
#define ast_pthread_create_background(a, b, c, d)
#define ast_config_load(filename, flags)
Load a config file.
General Asterisk PBX channel definitions.
#define AST_PTHREADT_NULL
void ast_config_destroy(struct ast_config *config)
Destroys a config.
int attribute_pure ast_true(const char *val)
Make sure something is true. Determine if a string containing a boolean value is "true". This function checks to see whether a string passed to it is an indication of an "true" value. It checks to see if the string is "yes", "true", "y", "t", "on" or "1".
Module has failed to load, may be in an inconsistent state.
Structure used to handle boolean flags.
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
#define CONFIG_STATUS_FILEMISSING
int res_snmp_agentx_subagent
SNMP Agent / SubAgent support for Asterisk.
int attribute_pure ast_false(const char *val)
Make sure something is false. Determine if a string containing a boolean value is "false"...
static int unload_module(void)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
static int load_module(void)
Load the module.