RCSPROXY-MIB DEFINITIONS ::= BEGIN

IMPORTS
	OBJECT-TYPE, MODULE-IDENTITY, Integer32, TimeTicks, Unsigned32
		FROM SNMPv2-SMI

	DisplayString, DateAndTime, TruthValue
		FROM SNMPv2-TC

	inconcertAgents
		FROM INCONCERT-MIB;

rcsproxy MODULE-IDENTITY
	LAST-UPDATED	"201111301500Z"
	ORGANIZATION	"inConcert Corporation"
	CONTACT-INFO
		"Guillermo Winkler
		Postal: inConcert Corporation
		        8 de Octubre 2297
		        Montevideo
		        Uruguay
		   Tel: +598 99 691341
		 Email: gwinkler@inconcertcc.com"
	DESCRIPTION
		"RCS Proxy is a distributed server that manages RCS accounts."
	REVISION	"201111301500Z"
	DESCRIPTION
		"Initial published revision."
	::= { inconcertAgents 13 }

rcsproxyVersion                       OBJECT IDENTIFIER ::= { rcsproxy 1 }
rcsproxyConfiguration                 OBJECT IDENTIFIER ::= { rcsproxy 2 }
rcsproxyNetwork                       OBJECT IDENTIFIER ::= { rcsproxy 3 }
rcsproxyInformation                   OBJECT IDENTIFIER ::= { rcsproxy 4 }


-- rcsproxyVersionString
rcsproxyVersionString OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Text version string of the version of RCS Proxy that
		the SNMP Agent was compiled to run against."
	::= { rcsproxyVersion 1 }

-- rcsproxyConfiguration

rcsproxyUpTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Time ticks since this RCS Proxy was started."
	::= { rcsproxyConfiguration 1 }

rcsproxyPid OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The process id of the running RCS Proxy process."
	::= { rcsproxyConfiguration 2 }

rcsproxyPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The port on which the RCS Proxy listens for connections."
	::= { rcsproxyConfiguration 3 }

rcsproxyThreads OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process threads."
	::= { rcsproxyConfiguration 4 }

rcsproxyHandles	 OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process handles."
	::= { rcsproxyConfiguration 5 }

-- rcsproxyNetwork

rcsproxyCluster OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Cluster of which the RCS Proxy is part."
	::= { rcsproxyNetwork 1 }

rcsproxySiblingTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF RCSProxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the fellow RCS Proxies on the cluster."
	::= { rcsproxyNetwork 2 }

rcsproxySiblingEntry OBJECT-TYPE
	SYNTAX		RCSProxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a fellow RCS Proxy."
	INDEX	{ rcsproxySiblingAddress }
	::= { rcsproxySiblingTable 1 }

rcsproxySiblingAddress OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Address (IP:port) of the sibling."
	::= { rcsproxySiblingEntry 1 }

rcsproxySiblingIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the sibling."
	::= { rcsproxySiblingEntry 2 }

rcsproxySiblingPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the sibling."
	::= { rcsproxySiblingEntry 3 }

RCSProxySiblingEntry ::= SEQUENCE {
	rcsproxySiblingAddress    DisplayString,
	rcsproxySiblingIP         DisplayString,
	rcsproxySiblingPort       Unsigned32
}

rcsproxyIRTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF RCSProxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the Interaction Routers connected to the RCS Proxy."
	::= { rcsproxyNetwork 3 }

rcsproxyIREntry OBJECT-TYPE
	SYNTAX		RCSProxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a known IR."
	INDEX	{ rcsproxyIRIndex }
	::= { rcsproxyIRTable 1 }

rcsproxyIRIndex OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Index table."
	::= { rcsproxyIREntry 1 }

rcsproxyIRIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the IR."
	::= { rcsproxyIREntry 2 }

rcsproxyIRPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the IR."
	::= { rcsproxyIREntry 3 }

rcsproxyIRStatus OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Connection status of the IR."
	::= { rcsproxyIREntry 4 }

RCSProxyIREntry ::= SEQUENCE {
	rcsproxyIRIndex      Unsigned32,
	rcsproxyIRIP         DisplayString,
	rcsproxyIRPort       Unsigned32,
	rcsproxyIRStatus     DisplayString
}

-- rcsproxyInformation

rcsproxyBoundAccounts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number bound (connected) accounts."
	::= { rcsproxyInformation 1 }

rcsproxyOfflineAccounts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of accounts wich bind failed."
	::= { rcsproxyInformation 2 }

rcsproxyIncomingMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total count of incoming messages successfully handled by the system"
	::= { rcsproxyInformation 3 }

rcsproxyOutgoingMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total count of outgoing messages successfully sent"
	::= { rcsproxyInformation 4 }

rcsproxyLastSentTexts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of RCS sent in the last minute."
	::= { rcsproxyInformation 5 }

rcsproxyLastReceivedTexts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of RCS received in the last minute."
	::= { rcsproxyInformation 6 }

rcsproxyActiveConversations OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of currently active conversations."
	::= { rcsproxyInformation 7 }

rcsproxyIVRConversations OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of conversations currently in IVR."
	::= { rcsproxyInformation 8 }

rcsproxyAssignedConversations OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of conversations being attended by an agent."
	::= { rcsproxyInformation 9 }

rcsproxySMPPTotalIncoming OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Count of DELIVER_SM requests handled by this system,
		includes those who ended up being successful and those who didn't."
	::= { rcsproxyInformation 10 }

rcsproxySMPPTotalOutgoing OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of SUBMIT_SM request sent by this system"
	::= { rcsproxyInformation 11 }

rcsproxySMPPTotalBinds OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of BIND requests sent by this system"
	::= { rcsproxyInformation 12 }

rcsproxySMPPLastBinds OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of BIND requests sent in the last 20 minutes"
	::= { rcsproxyInformation 13 }

rcsproxySMPPLastConnectionErrors OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of SMPP connection erros in the last 20 minutes"
	::= { rcsproxyInformation 14 }

-- rcsproxyInformation/Active conversations

rcsproxyConversationTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF RCSProxyConversationEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with the conversations that this RCS Proxy is handling."
	::= { rcsproxyInformation 15 }

rcsproxyConversationEntry OBJECT-TYPE
	SYNTAX		RCSProxyConversationEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a conversation running on an RCS Proxy."
	INDEX	{ rcsproxyConversationID }
	::= { rcsproxyConversationTable 1 }

rcsproxyConversationID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the conversation."
	::= { rcsproxyConversationEntry 1 }

rcsproxyConversationTimestamp OBJECT-TYPE
	SYNTAX		DateAndTime
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Timestamp of the last change in the conversation."
	::= { rcsproxyConversationEntry 2 }

rcsproxyConversationSessionID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the chatserver session."
	::= { rcsproxyConversationEntry 3 }

rcsproxyConversationSessionParticipants OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Participants of the chatserver session."
	::= { rcsproxyConversationEntry 4 }

rcsproxyConversationSessionProperties OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Properties of the chatserver session."
	::= { rcsproxyConversationEntry 5 }

rcsproxyConversationClientNumber OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Client number associated with this conversation."
	::= { rcsproxyConversationEntry 6 }

rcsproxyConversationAccountNumber OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"RCS account number of this conversation."
	::= { rcsproxyConversationEntry 7 }

rcsproxyConversationAccountId OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"RCS account id of this conversation."
	::= { rcsproxyConversationEntry 8 }

RCSProxyConversationEntry ::= SEQUENCE {
	rcsproxyConversationID                   DisplayString,
	rcsproxyConversationTimestamp            DateAndTime,
	rcsproxyConversationSessionID            DisplayString,
	rcsproxyConversationSessionParticipants  DisplayString,
	rcsproxyConversationSessionProperties    DisplayString,
	rcsproxyConversationClientNumber         DisplayString,
	rcsproxyConversationAccountNumber        DisplayString,
	rcsproxyConversationAccountId            DisplayString,
}

END

