Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 640
 
Chapter 4      Building Your Application
Working with Agent Statistics
4-68
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
    return;
}
 
// Find out what triggered the wait
int iEventID = rWaitObj.GetTriggerEvent();
if (iEventID == eControlFailureConf|| iEventID == eCTIOSFailureEvent)
{
    // Handle error ...
    return;
}
Accessing Agent Statistics
Overview
Once the applications are set up to receive agent statistics, as described in the 
preceding section, you can access agent statistics in two ways:
  •
By implementing the eOnNewAgentStatisticsEvent() (in Java) or the 
OnAgentStatistics() event (in C++, COM, or VB 6.0)
Caution
Note carefully that the name of the event through which to access 
agent statistics is different in Java than it is in other languages 
supported by CTI OS.
  •
Through the Agent instance itself
The rest of this section describes these methods for accessing agent statistics.
Registering to the eOnNewAgentStatisticsEvent() (JAVA)
To register to receive agent statistics, you must include the 
eOnNewAgentStatisticsEvent() in the message filter.
For example, in Java, the message filter to receive agent statistics is:
String filter = S_MESSAGEID + “=" + 
                  CtiOs_Enums.EventID.eNewAgentStatisticsEvent;
For more information on message filters, see page 4-37.