Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
Chapter 4      Building Your Application
Working with Agent Statistics
4-64
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1) 
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-29.
Step 2
Subscribe for events for the session, as described on page 4-30.
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-30.
Step 4
Connect the desktop application to the CTI OS Server, as described on page 4-31.
Step 5
In the OnConnection() event handler, set the Agent for the session, as described 
on page 4-34.
Step 6
Log in the agent, as described on page 4-43.
Step 7
Enable agents statistics using the EnableAgentStatistics() method. 
Note
Although 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.