Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 506
   
4-44
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 4      Building Your Application
Working with Agent Statistics
Working with Agent Statistics
Overview
This section describes how to work with agent statistics and contains the following subsections:
How to Set Up an Agent Application to Receive Agent Statistics
To set up an Agent application to receive agent statistics:
Step 1
Create an instance of the Session class, as described on page 4-20.
Step 2
Subscribe for events for the session, as described on page 4-21.
Note
You must register to receive agent and session events; therefore, in the AddEventListener() 
method you must use as parameters the field 
CtiOs_Enums.SubscriberList.eAgentList
 and 
CtiOs_Enums.SubscriberList.eSessionList
. Or you can use the 
CtiOs_Enums.SubscriberList.eAllInOneList.
Step 3
Set connection parameters, as described on page 4-21.
Step 4
Connect the desktop application to the CTI OS Server, as described on page 4-21.
Step 5
In the OnConnection() event handler, set the Agent for the session, as described on page 4-24.
Step 6
Log in the agent, as described on page 4-30.
Step 7
Enable agents statistics using the EnableAgentStatistics() method. 
Note
Though the EnableAgentStatistics() method requires an Arguments parameter, there are no 
parameters to set for agent statistics; you can therefore send an empty Arguments instance as 
a parameter.
Caution
The agent must be logged in before you can use the EnableAgentStatistics() method.
Step 8
To disable agents statistics, use the DisableAgentStatistics() method.