MGCP-MIB-CORE 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 Core Group Table
-- *********************************************************************

xgcpCoreObjectsTable OBJECT-TYPE 
       SYNTAX     SEQUENCE OF xgcpCoreObjectsEntry 
       MAX-ACCESS not-accessible 
       STATUS     current 
       DESCRIPTION 
            "This table contains the objects  
             applicable to all xgcp entities.  Each row represents 
             those objects for a particular MGCP entity present in 
             this system. The instances of MGCP entities are 
             uniquely identified by applIndex." 
       ::= { xgcpObjects 1 } 

xgcpCoreObjectsEntry OBJECT-TYPE 
       SYNTAX      xgcpCoreObjectsEntry
       MAX-ACCESS not-accessible 
       STATUS     current 
       DESCRIPTION 
            "A row of common configuration." 
       INDEX { applIndex } 
       ::= { xgcpCoreObjectsTable 1 } 

xgcpCoreObjectsEntry ::=
    SEQUENCE {
       xgcpInBadVersions	Counter32,
       xgcpInitialRequestTimeOut	Integer32,
       xgcpAdminStatus		INTEGER,
       xgcpOperStatus		INTEGER,
       xgcpUnRecognizedPackets	Counter32
    }
       

xgcpInBadVersions OBJECT-TYPE
    SYNTAX     Counter32
    UNITS      "messages"
    MAX-ACCESS read-only
    STATUS     current
    DESCRIPTION
        "The total number of incoming messages which were delivered to
         the protocol entity and were for an unsupported protocol 
         version.
        "
    ::= { xgcpCoreObjectsTable 2 }

xgcpInitialRequestTimeOut OBJECT-TYPE
    SYNTAX      Integer32 (1..100000)  
    UNITS       "milliseconds"
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
    	"The initial request timeout is used to determine the initial timeout 
	 value used for retransmitting unacknowledged message.
	 It is the responsibility of the requesting entity to provide
	 suitable timeouts for all outstanding commands, and to retry
	 commands when timeouts exceeded.

	 The default value of this object is 500 milliseconds.
    	"
    ::= { xgcpCoreObjectsTable 3 }


xgcpRequestTimeOutCap  OBJECT-TYPE
    SYNTAX      Integer32 (0..100000)
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object specifies the cap timeout
	 value used for retransmitting unacknowledged messages.
	 The default value of this object is 1500 milliseconds
        "
    ::= { xgcpCoreObjectsTable 4 }

xgcpAdminStatus OBJECT-TYPE
    SYNTAX      INTEGER {
		up		(1),
 		down		(2),
		gracefulDown	(3)
		}
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "The desired state of the protocol entity and corresponding 
	application. 

	 The possible admin status are:
	     up - bring up protocol and application 
		entity administratively  
	     down - bring down protocol and application 
		entity adiministratively 
	     gracefulDown - gracefully shut down protocol and
                application entity administratively. 

 	 A graceful shutdown indicates that the protocol 
	 will be taken out of service after the restart  
	 delay timer timeouts or all connections are torn down.

         When in graceDown, the xgcpOperStatus goes from up to 
         down via shutDownInProgress. 
         If there is no connection or restart delay timer 
         timeouts then xgcpOperStatus moves from 
         shutDownInProgress to down.
        "
    DEFVAL { down }
    ::= { xgcpCoreObjectsTable 5 }


xgcpOperStatus OBJECT-TYPE
    SYNTAX      INTEGER {
		up                	(1),
 		down              	(2),
		shutDownInProgress      (3)
		}
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object indicates the current operational
         status of the protocol entity.    

	 The possible operating status are:
	     up - protocol up 
	     down - protocol down 
 	     shutDownInProgress - Shut down in progress.

	 The operating status - shutDownInProgress indicates 
         that the Media Gateway/Controller is in a transition state from 
         up to down. This state happens when resources are in 
         the process of being cleaned up and new resource 
         can't be allocated. 
	"
    ::= { xgcpCoreObjectsTable 6 }


xgcpUnRecognizedPackets  OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        " This refers to the count of unrecognized packets  
          since reset.
        "
    ::= { xgcpCoreObjectsTable 7 }

END
