Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 500
   
4-48
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 4      Building Your Application
Working with Agent Statistics
Accessing Agent Statistics
Overview
Once the applications are set up to receive agent statistics, as described in the preceding section, you can 
access agent statistics in two ways:
By implementing the eOnNewAgentStatisticsEvent() (in Java) or the OnAgentStatistics() event (in 
C++, COM, or VB 6.0)
Caution
Note carefully that the name of the event through which to access agent statistics is 
different in Java than it is in other languages supported by CTI OS.
Through the Agent instance itself
The rest of this section describes these methods for accessing agent statistics.
Registering to the eOnNewAgentStatisticsEvent() (JAVA)
To register to receive agent statistics, you must include the eOnNewAgentStatisticsEvent() in the 
message filter.
For example, in Java, the message filter to receive agent statistics is:
String filter = S_MESSAGEID + “=" + 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CtiOs_Enums.EventID.eNewAgentStatisticsEvent;
For more information on message filters, see page 4-25.
Registering to the OnAgentStatistics() (C++, COM, and VB)
To register to receive agent statistics, you must include the OnAgentStatistics() event in the message 
filter.
For more information on message filters, see page 4-25.
How to Get Agent Statistics through the Agent Instance
Once you have used the EnableAgentStatistics() method for the agent, agent statistics are available 
through that Agent instance. 
To get the agent statistics
Step 1
Get the Arguments instance containing statistics from the Agent instance using the GetValueArray() 
method.
Step 2
Parse the Arguments instance as needed to get specific statistics.