Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
agent.h File Reference

SNMP Agent / SubAgent support for Asterisk. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * agent_thread (void *arg)
 

Variables

int res_snmp_agentx_subagent
 
int res_snmp_dont_stop
 

Detailed Description

SNMP Agent / SubAgent support for Asterisk.

Author
Thorsten Lockert tholo.nosp@m.@voo.nosp@m.p.as

Definition in file agent.h.

Function Documentation

◆ agent_thread()

void * agent_thread ( void *  arg)

Definition at line 186 of file agent.c.

187{
188 ast_verb(2, "Starting %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
189
190 snmp_enable_stderrlog();
191
193 netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,
194 NETSNMP_DS_AGENT_ROLE,
195 1);
196
197 init_agent("asterisk");
198
200
201 init_snmp("asterisk");
202
204 init_master_agent();
205
206 while (res_snmp_dont_stop)
207 agent_check_and_process(1);
208
209 snmp_shutdown("asterisk");
210
211 ast_verb(2, "Terminating %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
212
213 return NULL;
214}
static void init_asterisk_mib(void)
Definition: agent.c:809
#define ast_verb(level,...)
int res_snmp_dont_stop
Definition: res_snmp.c:44
int res_snmp_agentx_subagent
Definition: res_snmp.c:43
#define NULL
Definition: resample.c:96

References ast_verb, init_asterisk_mib(), NULL, res_snmp_agentx_subagent, and res_snmp_dont_stop.

Referenced by load_module().

Variable Documentation

◆ res_snmp_agentx_subagent

int res_snmp_agentx_subagent
extern

Definition at line 43 of file res_snmp.c.

Referenced by agent_thread(), and load_config().

◆ res_snmp_dont_stop

int res_snmp_dont_stop
extern

Definition at line 44 of file res_snmp.c.

Referenced by agent_thread(), load_module(), and unload_module().