A class for performing SNMP V2 queries on Asterisk

see
copyright Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland
author Barry O'Donovan

 Methods

Returns an array of ISO country codes for the defined indications zones (indexed by SNMP table entry)

countryCodes() : array
> Country for which the indication zone is valid, > typically this is the ISO 2-letter code of the country.

Returns

arrayAn array of ISO country codes for the defined indications zones (indexed by SNMP table entry)

Returns the default indication zone to use.

defaultZone() : string
> Default indication zone to use.

Returns

stringThe default indication zone to use

Returns an array of indications zone descriptions (indexed by SNMP table entry)

descriptions() : array
> Description of the indication zone, usually the full > name of the country it is valid for.

Returns

arrayAn array of indications zone descriptions

Get the SNMP instance

getSNMP() : \OSS_SNMP\SNMP

Returns

\OSS_SNMP\SNMPInstance of the SNMP object

Returns the number of indications defined in Asterisk

number() : int
> Number of indications currently defined in Asterisk.

Returns

intThe number of indications defined in Asterisk

Set the SNMP instance

setSNMP(\OSS_SNMP\SNMP $snmp) : \OSS_SNMP\MIB

Parameters

$snmp

\OSS_SNMP\SNMP

the SNMP instance

Returns

\OSS_SNMP\MIBAn instance of this class for fluent interfaces

 Properties

 

Instance for the SNMP object

$_snmp 

Default

null

 Constants

 

OID_ASTERISK_DEFAULT_INDICATION

OID_ASTERISK_DEFAULT_INDICATION = '.1.3.6.1.4.1.22736.1.4.2.0' 
 

OID_ASTERISK_INDICATIONS_COUNT

OID_ASTERISK_INDICATIONS_COUNT = '.1.3.6.1.4.1.22736.1.4.1.0' 
 

OID_ASTERISK_INDICATIONS_COUNTRY

OID_ASTERISK_INDICATIONS_COUNTRY = '.1.3.6.1.4.1.22736.1.4.3.1.2' 
 

OID_ASTERISK_INDICATIONS_DESCRIPTION

OID_ASTERISK_INDICATIONS_DESCRIPTION = '.1.3.6.1.4.1.22736.1.4.3.1.4'