SMSPROXY-MIB DEFINITIONS ::= BEGIN

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

	DisplayString, DateAndTime, TruthValue
		FROM SNMPv2-TC

	inconcertAgents
		FROM INCONCERT-MIB;

smsproxy 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
		"SMS Proxy is a distributed server that manages SMS accounts."
	REVISION	"201111301500Z"
	DESCRIPTION
		"Initial published revision."
	::= { inconcertAgents 13 }

smsproxyVersion                       OBJECT IDENTIFIER ::= { smsproxy 1 }
smsproxyConfiguration                 OBJECT IDENTIFIER ::= { smsproxy 2 }
smsproxyNetwork                       OBJECT IDENTIFIER ::= { smsproxy 3 }
smsproxyInformation                   OBJECT IDENTIFIER ::= { smsproxy 4 }


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

-- smsproxyConfiguration

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

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

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

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

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

-- smsproxyNetwork

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

smsproxySiblingTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF SMSProxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the fellow SMS Proxies on the cluster."
	::= { smsproxyNetwork 2 }

smsproxySiblingEntry OBJECT-TYPE
	SYNTAX		SMSProxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a fellow SMS Proxy."
	INDEX	{ smsproxySiblingAddress }
	::= { smsproxySiblingTable 1 }

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

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

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

SMSProxySiblingEntry ::= SEQUENCE {
	smsproxySiblingAddress    DisplayString,
	smsproxySiblingIP         DisplayString,
	smsproxySiblingPort       Unsigned32
}

smsproxyIRTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF SMSProxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the Interaction Routers connected to the SMS Proxy."
	::= { smsproxyNetwork 3 }

smsproxyIREntry OBJECT-TYPE
	SYNTAX		SMSProxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a known IR."
	INDEX	{ smsproxyIRIndex }
	::= { smsproxyIRTable 1 }

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

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

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

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

SMSProxyIREntry ::= SEQUENCE {
	smsproxyIRIndex      Unsigned32,
	smsproxyIRIP         DisplayString,
	smsproxyIRPort       Unsigned32,
	smsproxyIRStatus     DisplayString
}

-- smsproxyInformation

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

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

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

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

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

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

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

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

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

smsproxySMPPTotalIncoming 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."
	::= { smsproxyInformation 10 }

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

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

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

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

-- smsproxyInformation/Active conversations

smsproxyConversationTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF SMSProxyConversationEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with the conversations that this SMS Proxy is handling."
	::= { smsproxyInformation 15 }

smsproxyConversationEntry OBJECT-TYPE
	SYNTAX		SMSProxyConversationEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a conversation running on an SMS Proxy."
	INDEX	{ smsproxyConversationID }
	::= { smsproxyConversationTable 1 }

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

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

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

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

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

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

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

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

SMSProxyConversationEntry ::= SEQUENCE {
	smsproxyConversationID                   DisplayString,
	smsproxyConversationTimestamp            DateAndTime,
	smsproxyConversationSessionID            DisplayString,
	smsproxyConversationSessionParticipants  DisplayString,
	smsproxyConversationSessionProperties    DisplayString,
	smsproxyConversationClientNumber         DisplayString,
	smsproxyConversationAccountNumber        DisplayString,
	smsproxyConversationAccountId            DisplayString,
}

END

