Cisco Cisco Computer Telephony Integration OS 8.5 Guía Del Desarrollador
Chapter 4 Building Your Application
Working with Agent Statistics
4-52
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
•
•
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-27.
Step 2
Subscribe for events for the session, as described on page 4-28.
Note
You must register to receive agent and session events; therefore, in the
AddEventListener() method you must use as parameters the field
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-28.
Step 4
Connect the desktop application to the CTI OS Server, as described on page 4-29.
Step 5
In the OnConnection() event handler, set the Agent for the session, as described
on page 4-32.
on page 4-32.
Step 6
Log in the agent, as described on page 4-38.
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.
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.
method.
Step 8
To disable agents statistics, use the DisableAgentStatistics() method.