More...
#include "../../sr_module.h"


Go to the source code of this file.
Definition in file snmpstats_globals.h.
| #define HASH_SIZE 32 |
Definition at line 129 of file snmpstats_globals.h.
| #define MAX_PROC_BUFFER 256 |
Definition at line 125 of file snmpstats_globals.h.
| #define MAX_USER_LOOKUP_COUNTER 255 |
Definition at line 127 of file snmpstats_globals.h.
Referenced by handle_openserSIPRegUserLookupCounter().
| #define SNMPGET_MAX_BUFFER 80 |
Definition at line 124 of file snmpstats_globals.h.
Referenced by handle_openserSIPServiceStartTime().
| #define SNMPGET_TEMP_FILE "/tmp/openSER_SNMPAgent.txt" |
Definition at line 123 of file snmpstats_globals.h.
Referenced by handle_openserSIPServiceStartTime(), and spawn_sysUpTime_child().
| #define TC_ALARM_STATE_CLEAR 0 |
Definition at line 98 of file snmpstats_globals.h.
Referenced by handle_openserDialogLimitMajorAlarm(), handle_openserDialogLimitMinorAlarm(), handle_openserMsgQueueDepthMajorAlarm(), and handle_openserMsgQueueDepthMinorAlarm().
| #define TC_ALARM_STATE_CRITICAL 1 |
Definition at line 99 of file snmpstats_globals.h.
| #define TC_ALARM_STATE_MAJOR 2 |
Definition at line 100 of file snmpstats_globals.h.
Referenced by handle_openserDialogLimitMajorAlarm(), and handle_openserMsgQueueDepthMajorAlarm().
| #define TC_ALARM_STATE_MINOR 3 |
Definition at line 101 of file snmpstats_globals.h.
Referenced by handle_openserDialogLimitMinorAlarm(), and handle_openserMsgQueueDepthMinorAlarm().
| #define TC_ALARM_STATE_UNKNOWN 4 |
Definition at line 102 of file snmpstats_globals.h.
| #define TC_ALARM_STATUS_ALARM_OUTSTANDING (128 >> 4) |
Definition at line 81 of file snmpstats_globals.h.
| #define TC_ALARM_STATUS_CRITICAL (128 >> 1) |
Definition at line 78 of file snmpstats_globals.h.
| #define TC_ALARM_STATUS_MAJOR (128 >> 2) |
Definition at line 79 of file snmpstats_globals.h.
Referenced by handle_openserDialogLimitAlarmStatus(), and handle_openserMsgQueueDepthAlarmStatus().
| #define TC_ALARM_STATUS_MINOR (128 >> 3) |
Definition at line 80 of file snmpstats_globals.h.
Referenced by handle_openserDialogLimitAlarmStatus(), and handle_openserMsgQueueDepthAlarmStatus().
| #define TC_ALARM_STATUS_UNDER_REPAIR (128 >> 0) |
Definition at line 77 of file snmpstats_globals.h.
| #define TC_ALARM_STATUS_UNKNOWN (128 >> 5) |
Definition at line 82 of file snmpstats_globals.h.
| #define TC_FALSE 2 |
Definition at line 121 of file snmpstats_globals.h.
Referenced by handle_openserSIPProxyRecordRoute().
| #define TC_ROWSTATUS_ACTIVE 1 |
Definition at line 109 of file snmpstats_globals.h.
Referenced by openserSIPRegUserLookupTable_set_action(), openserSIPRegUserLookupTable_set_reserve1(), and openserSIPStatusCodesTable_set_reserve1().
| #define TC_ROWSTATUS_CREATEANDGO 4 |
Definition at line 112 of file snmpstats_globals.h.
Referenced by openserSIPRegUserLookupTable_set_action(), openserSIPRegUserLookupTable_set_reserve1(), openserSIPStatusCodesTable_set_action(), and openserSIPStatusCodesTable_set_reserve1().
| #define TC_ROWSTATUS_CREATEANDWAIT 5 |
Definition at line 113 of file snmpstats_globals.h.
| #define TC_ROWSTATUS_DESTROY 6 |
Definition at line 114 of file snmpstats_globals.h.
Referenced by openserSIPRegUserLookupTable_set_action(), openserSIPRegUserLookupTable_set_reserve1(), openserSIPStatusCodesTable_set_action(), and openserSIPStatusCodesTable_set_reserve1().
| #define TC_ROWSTATUS_NOTINSERVICE 2 |
Definition at line 110 of file snmpstats_globals.h.
Referenced by openserSIPRegUserLookupTable_set_action().
| #define TC_ROWSTATUS_NOTREADY 3 |
Definition at line 111 of file snmpstats_globals.h.
Referenced by openserSIPRegUserLookupTable_set_action(), and openserSIPRegUserLookupTable_set_reserve1().
| #define TC_SIP_ENTITY_ROLE_OTHER (128 >> 0) |
| #define TC_SIP_ENTITY_ROLE_PROXY_SERVER (128 >> 2) |
| #define TC_SIP_ENTITY_ROLE_REDIRECT_SERVER (128 >> 3) |
| #define TC_SIP_ENTITY_ROLE_REGISTRAR_SERVER (128 >> 4) |
| #define TC_SIP_ENTITY_ROLE_USER_AGENT (128 >> 1) |
| #define TC_SIP_OPTION_TAG_PROXY_REQUIRE (128 >> 1) |
Definition at line 73 of file snmpstats_globals.h.
| #define TC_SIP_OPTION_TAG_REQUIRE (128 >> 0) |
Definition at line 72 of file snmpstats_globals.h.
| #define TC_SIP_OPTION_TAG_SUPPORTED (128 >> 2) |
Definition at line 74 of file snmpstats_globals.h.
| #define TC_SIP_OPTION_TAG_UNSUPPORTED (128 >> 3) |
Definition at line 75 of file snmpstats_globals.h.
| #define TC_SIP_TRANSPORT_PROTOCOL_OTHER (128>>0) |
Definition at line 60 of file snmpstats_globals.h.
| #define TC_SIP_TRANSPORT_PROTOCOL_SCTP (128>>3) |
Definition at line 63 of file snmpstats_globals.h.
| #define TC_SIP_TRANSPORT_PROTOCOL_TCP (128>>2) |
Definition at line 62 of file snmpstats_globals.h.
| #define TC_SIP_TRANSPORT_PROTOCOL_TLS (128>>4) |
Definition at line 64 of file snmpstats_globals.h.
| #define TC_SIP_TRANSPORT_PROTOCOL_UDP (128>>1) |
Definition at line 61 of file snmpstats_globals.h.
| #define TC_TRANSPORT_PROTOCOL_OTHER (128 >> 0) |
| #define TC_TRANSPORT_PROTOCOL_SCTP (128 >> 3) |
Definition at line 87 of file snmpstats_globals.h.
| #define TC_TRANSPORT_PROTOCOL_TCP (128 >> 2) |
| #define TC_TRANSPORT_PROTOCOL_TLS (128 >> 4) |
| #define TC_TRANSPORT_PROTOCOL_UDP (128 >> 1) |
| #define TC_TRUE 1 |
Definition at line 120 of file snmpstats_globals.h.
Referenced by handle_openserSIPProxyRecordRoute().
| #define TC_USAGE_STATE_ACTIVE 1 |
| #define TC_USAGE_STATE_BUSY 2 |
| #define TC_USAGE_STATE_IDLE 0 |
| #define TC_USAGE_STATE_UNKNOWN 3 |
| int handleSipEntityType | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the sip entity type parameter.
Definition at line 464 of file openserSIPCommonObjects.c.
References LM_ERR, openserEntityType, stringHandlerSanityCheck(), TC_SIP_ENTITY_ROLE_OTHER, TC_SIP_ENTITY_ROLE_PROXY_SERVER, TC_SIP_ENTITY_ROLE_REDIRECT_SERVER, TC_SIP_ENTITY_ROLE_REGISTRAR_SERVER, and TC_SIP_ENTITY_ROLE_USER_AGENT.
| int set_dlg_major_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the dialog major threshold
Definition at line 659 of file openserObjects.c.
References dialog_major_threshold, and set_if_valid_threshold().
| int set_dlg_minor_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the dialog minor threshold
Definition at line 652 of file openserObjects.c.
References dialog_minor_threshold, and set_if_valid_threshold().
| int set_queue_major_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the Msg Queue Depth Major Threshold
Definition at line 645 of file openserObjects.c.
References msgQueueMajorThreshold, and set_if_valid_threshold().
| int set_queue_minor_threshold | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the Msg Queue Depth Minor Threshold
Definition at line 638 of file openserObjects.c.
References msgQueueMinorThreshold, and set_if_valid_threshold().
| int set_snmp_community | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the snmp community string.
Definition at line 483 of file snmpstats.c.
References snmp_community, and stringHandlerSanityCheck().
| int set_snmpget_path | ( | modparam_t | type, | |
| void * | val | |||
| ) |
Handles setting of the path to the snmpget binary.
This function is called whenever the kamailio.cfg file specifies the snmpgetPath parameter. The function will set the snmpget_path parameter.
Definition at line 471 of file snmpstats.c.
References snmpget_path, and stringHandlerSanityCheck().
| unsigned int global_UserLookupCounter |
Definition at line 55 of file openserSIPServerObjects.c.
Referenced by handle_openserSIPRegUserLookupCounter(), and openserSIPRegUserLookupTable_extract_index().
1.5.6