Cisco Cisco Computer Telephony Integration Option 9.0 개발자 가이드

다운로드
페이지 640
 
Chapter 4      Building Your Application
Working with Agent Statistics
4-66
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
d.
Use the SetMessageFilter() method in the Session class to set the filter for the 
session, using the Arguments instance you created in Step b as a parameter.
Step 7
Wait for any event for the agent, to ensure that the Agent instance exists for the 
Session.
Caution
The application must wait for the first event for this agent before 
continuing, to ensure that the Agent instance is part of the current 
session.
Note
This example uses a Wait object to wait. 
Step 8
Get the Agent instance from the Session using GetObjectFromObjectID() 
method.
Step 9
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 you an empty Arguments instance as a parameter.
Caution
The agent must be logged in before you can use the EnableAgentStatistics() 
method.
Step 10
To disable agents statistics, use the DisableAgentStatistics() method.