MGCP-MIB-STATS DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, 
    OBJECT-TYPE, 
    Integer32, 
    Counter32, 
    IpAddress, 
    NOTIFICATION-TYPE
		FROM SNMPv2-SMI
    TimeStamp,
    TruthValue,
    DisplayString 	
                FROM SNMPv2-TC
    xgcpObjects 
		FROM MGCP-MIB-SMI;

-- *****************************************************************
-- The XGCP Statistics table
-- *****************************************************************
xgcpMsgStatTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF XgcpMsgStatEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This table contains XGCP statistics information since reset.
         XGCP statistics are kept in this table, with each 
         table entry containing the statistics of XGCP that 
         communicates with a Media Gateway at 
         a specific IP address and port of the Media Gateway.

         Each table entry is composed of the following information:  

         1) Messages successfully received/transmitted per IP device
	 and port 
         2) Messages failed to be received/transmitted per IP device
	 and port"
    ::= { xgcpObjects 7 }

xgcpMsgStatEntry OBJECT-TYPE
    SYNTAX      xgcpMsgStatEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "The row of the xgcpMsgStatTable contains 
         information about XGCP message statistics per IP address
         of the Media Gateway.
         An entry is created when a request messge with new IP 
         address is received from Medida Gateway Controller. 
         When the table is full, an entry is deleted if it is 
         LRU (Least Recently Used). 
	"
    INDEX   { applIndex, xgcpIPAddress, xgcpPort }
    ::= { xgcpMsgStatTable 1 }

xgcpMsgStatEntry ::= SEQUENCE {
        xgcpIPAddress                   IpAddress,
	xgcpPort			Integer32,
        xgcpSuccessTxMessages             Counter32,
        xgcpSuccessRxMessages             Counter32,
        xgcpFailTxMessages                Counter32
        xgcpFailRxMessages                Counter32
    }


xgcpIPAddress  OBJECT-TYPE
    SYNTAX      IpAddress
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        " This object specifies the IP address of the  
          Media Gateway.
        "
    ::= { xgcpMsgStatTable 2 }
 
xgcpPort OBJECT-TYPE
	 SYNTAX		Integer32  (0..64000)
	 MAX-ACCESS	not-accessible
	 STATUS		current
	 DESCRIPTION
		" This object specifies the port of the
		Media Gateway"
	::= { xgcpMsgStatTable 3 }

xgcpSuccessTxMessages  OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object specifies the count of successful messages
         that communicate with the Media Gateway Controller on 
         that IP address. This counter is updated on successful
	 completion of an entire transaction.
         Positive ACK is received from the Media Gateway "
    ::= { xgcpMsgStatTable 4 }
 
xgcpSuccessRxMessages  OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object specifies the count of successful messages
         that communicate with the Media Gateway Controller on 
         that IP address. This counter is updated on successful
	 completion of an entire transaction.
         Positive ACK is sent to the Media Gateway 
         Controller. This implies that the format  
         of the message is correct and the request
         can be fulfilled."
    ::= { xgcpMsgStatTable 5 }
 

xgcpFailTxMessages  OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object specifies the count of failed  messages
         that communicate with the Media Gateway on 
         that IP address.  This counter is updated on failure 
	 of an entire transaction.  Not on failure of a single
	 transmit or retransmit.
         Either NAK is received from the MGC or message
         times out waiting for ACK.   "
    ::= { xgcpMsgStatTable 6 }
 
xgcpFailRxMessages  OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object specifies the count of failed  messages
         that communicate with the Media Gateway on 
         that IP address.  This counter is updated on failure 
	 of an entire transaction.  Not on failure of a single
	 transmit or retransmit.
	 Format of the received message is bad or
         the request can not be fulfilled.   "
    ::= { xgcpMsgStatTable 7 }


END
