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 *)

Variables

int res_snmp_agentx_subagent
int res_snmp_dont_stop


Detailed Description

SNMP Agent / SubAgent support for Asterisk.

Author:
Thorsten Lockert <tholo@voop.as>

Definition in file agent.h.


Function Documentation

void* agent_thread ( void *   ) 

Definition at line 185 of file agent.c.

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

Referenced by load_module().

00186 {
00187    ast_verb(2, "Starting %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
00188 
00189    snmp_enable_stderrlog();
00190 
00191    if (res_snmp_agentx_subagent)
00192       netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,
00193                         NETSNMP_DS_AGENT_ROLE,
00194                         1);
00195 
00196    init_agent("asterisk");
00197 
00198    init_asterisk_mib();
00199 
00200    init_snmp("asterisk");
00201 
00202    if (!res_snmp_agentx_subagent)
00203       init_master_agent();
00204 
00205    while (res_snmp_dont_stop)
00206       agent_check_and_process(1);
00207 
00208    snmp_shutdown("asterisk");
00209 
00210    ast_verb(2, "Terminating %sAgent\n", res_snmp_agentx_subagent ? "Sub" : "");
00211 
00212    return NULL;
00213 }


Variable Documentation

Definition at line 45 of file res_snmp.c.

Referenced by agent_thread().

Definition at line 46 of file res_snmp.c.

Referenced by agent_thread().


Generated on Thu Apr 16 06:28:12 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6