Add count of total number of calls processed by asterisk during it's lifetime.

Add number of total calls and current calls to SNMP.

Closes issue #10057, patch by jcmoore.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2007-12-07 16:11:05 +00:00
parent 00297c91e5
commit 02ea9face7
5 changed files with 105 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ IMPORTS
FROM DIGIUM-MIB;
asterisk MODULE-IDENTITY
LAST-UPDATED "200606081626Z"
LAST-UPDATED "200708211450Z"
ORGANIZATION "Digium, Inc."
CONTACT-INFO
"Mark A. Spencer
@@ -29,6 +29,9 @@ asterisk MODULE-IDENTITY
Norway
Tel: +47 5598 7200
Email: tholo@voop.no"
DESCRIPTION
"Add total and current call counter statistics."
REVISION "200708211450Z"
DESCRIPTION
"Asterisk is an Open Source PBX. This MIB defined
objects for managing Asterisk instances."
@@ -104,6 +107,23 @@ astConfigSocket OBJECT-TYPE
"The control socket for giving Asterisk commands."
::= { asteriskConfiguration 4 }
astConfigCallsActive OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of calls currently active on the Asterisk PBX."
::= { asteriskConfiguration 5 }
astConfigCallsProcessed OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The total number of calls processed through the Asterisk PBX since last
restart."
::= { asteriskConfiguration 6 }
-- asteriskModules
astNumModules OBJECT-TYPE
@@ -194,7 +214,7 @@ astIndDescription OBJECT-TYPE
-- asteriskChannels
astNumChannels OBJECT-TYPE
SYNTAX Integer32
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION