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");
 
 
void * agent_thread(void *arg)
SNMP Agent / SubAgent support for Asterisk.
Asterisk main include file. File version handling, generic pbx functions.
General Asterisk PBX channel definitions.
#define ast_config_load(filename, flags)
Load a config file.
char * ast_category_browse(struct ast_config *config, const char *prev_name)
Browse categories.
#define CONFIG_STATUS_FILEMISSING
#define CONFIG_STATUS_FILEINVALID
void ast_config_destroy(struct ast_config *cfg)
Destroys a config.
struct ast_variable * ast_variable_browse(const struct ast_config *config, const char *category_name)
#define ast_verb(level,...)
#define AST_PTHREADT_NULL
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODULE_SUPPORT_EXTENDED
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
static int load_module(void)
Load the module.
int res_snmp_agentx_subagent
static int unload_module(void)
static int res_snmp_enabled
static int load_config(void)
Load res_snmp.conf config file.
int attribute_pure ast_true(const char *val)
Make sure something is true. Determine if a string containing a boolean value is "true"....
int attribute_pure ast_false(const char *val)
Make sure something is false. Determine if a string containing a boolean value is "false"....
Structure used to handle boolean flags.
Structure for variables, used for configurations and for channel variables.
#define ast_pthread_create_background(a, b, c, d)