Cisco Cisco Computer Telephony Integration OS 8.5 开发者指南

下载
页码 640
 
4-95
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
 
Chapter 4      Building Your Application
Building Supervisor Applications
Figure 4-5
Message Flow between the Application and the CTI OS Server
The requests leading up to and including Agent.StartMonitoringAgent() is in 
CTIObject.StartMonitoringAgent(). When writing a supervisor application, the 
developer should call Agent.RequestAgentTeamList() and 
Agent.StartMonitoringAllAgentTeams().  The developer should call these 
methods once the supervisor has logged in.  In the CTIOS Toolkit Combo 
Desktop, this is done when processing the eAgentStateEvent in the 
SupervisorUIManager class’ ProcessAgentStateEvent() method.  
SupervisorUIManager checks to see that the current agent is a supervisor.  If so 
and if CTIObject.StartMonitoringTeams() has not already been called, 
CTIObject.StartMonitoringTeams() is called.  
CTIObject.StartMonitoringTeams() then calls Agent.RequestAgentTeamList() 
and Agent.StartMonitoringAllAgentTeams().