MGCP-MIB-CFG 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;

xgcpMGCCfgTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF xgcpMGCCFGEntry
    MAX-ACCESS  not-accessible
    STATUS	current
    DESCRIPTION
	"This table contains the configuration of a given Gateway
	application.  It is indexed by the applTable index from
	mibII.27"
    ::= { xgcpObjects 5 }

xgcpMGCCFGEntry OBJECT-TYPE
    SYNTAX	xgcpMGCCFGEntry
    MAX-ACCESS	not-accessible
    STATUS	current
    DESCRIPTION
	"The row of the xgcpMGCCfgTable contains information about
	a single MGCP application."
    INDEX  { applIndex }
    ::= { xgcpMGCCfgTable 1 }

xgcpMGCCfgEntry ::= SEQUENCE {
		xgcpMGCCfgAddress	DisplayString (SIZE (1..64)),
		xgcpMGCCfgUDPPort	Integer32,
		xgcpMGCCfgConnStatus	INTEGER,
		xgcpMGCCfgTimeStamp	TimeStamp
		}

xgcpMGCCfgAddress OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (1..64)) 
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object is used to configure either the domain 
         name or the IP address of the Default Media Gateway 
         Controller in standard dot notation.     

         The complete address of a default MGC is cmposed of  
         IP address/Domain Name and UDP port.
        
         xgcpMGCCfgaddress specifies address of the default Media 
         Gateway Controller to which RSIP(RestartInProgress) message 
         is sent whenever system starts up or line goes up.

         If DNS name is entered and the IP address is found,
         MG will send RSIP to the desired MGC. If no IP address is  
         found or no such DNS name exists, no RSIP will be sent.

         If IP address is entered, MG will send RSIP to that address.

         If there is no response, it could be that the network is down 
         or user misconfigures the address (IP address, Domain Name or
         UDP port number)
	"
    ::= { xgcpMGCCfgTable 2 } 

xgcpMGCCfgUDPPort OBJECT-TYPE
    SYNTAX      Integer32(1025..65535)
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object is used to configure the UDP port
         of the Media Gateway Controller.

         The UDP port is used together with xgcpMGCCfgAddress to  
         specify the destination address of the default Media 
         Gateway Controller to which RSIP message is sent when
         system starts up or line goes up.
          
	"
    ::= { xgcpMGCCfgTable 3 } 

xgcpMGCCfgConnStatus OBJECT-TYPE
    SYNTAX      INTEGER {
                unknown                 (1),
		connected               (2),
 		connecting              (3),
		noSuchName              (4),
                noResponse              (5)
 
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object is used to specify the connection status   
         of the Default Media Gateway Controller.

         When sending RSIP to default Media Gateway Controller,
         there could be the following status:
   
         unknown - undefined stauts. 
         connected - RSIP sent and response to it is received.  
         connecting -  RSIP is sent and waiting for response.
         noSuchName - no domain name/ip address is found 
                      when checking the DNS for the domain name 
                      entered in xgcpMGCCfgAddress. No RSIP 
                      message is sent.
         noResponse - timeout on RSIP message. 
         The possible casues for no response on RSIP message:          

         1) Address(IP Address/Domain Name and UDP) for the default 
            MGC is correct but MGC in not up or network is down.
         2) MGC is up but at a different address (IP Address/
            Domain Name)
         3) MGC is up and at the same address(IP address/
            Domain Name) but wrong UDP port.
         4) MGC is down and address is wrong. 
	"
    ::= { xgcpMGCCfgTable 4 } 


xgcpMGCCfgTimeStamp OBJECT-TYPE
    SYNTAX      TimeStamp 
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "This object contains the time stamp of 
         state transition of xgcpMGCCfgConnStatus.
	"
    ::= { xgcpMGCCfgTable 5 } 


END
