Cisco Cisco Computer Telephony Integration Option 9.0 Entwickleranleitung

Seite von 490
   
4-50
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 4      Building Your Application
Working with Skill Group Statistics
How to Set Up a Monitor-Mode Application to Receive Skill Group Statistics
To set up a Monitor-mode application to receive skill group statistics:
Step 1
Create an instance of the Session class, as described on 
.
Step 2
Subscribe for events for the session, as described on 
Note
You must register to receive session and skill group events. In the AddEventListener() 
method you must use as a parameter the field 
CtiOs_Enums.SubscriberList.eAllInOneList
or you must call the method twice using the fields 
CtiOs_Enums.SubscriberList.eSessionList 
and
 
CtiOs_Enums.SubscriberList.eSkillGroupList
Step 3
Set connection parameters, as described on 
.
Step 4
Connect the desktop application to the CTI OS Server, as described on 
Step 5
Set the message filter as described on 
a.
Create String for the filter using the keyword
 S_FILTERTARGET
 as the name and the event keyword 
(enum or number) 
eOnNewSkillGroupStatisticsEvent
 
(numeric value 536871027) 
as the value.
b.
Create an instance of the Arguments class.
c.
Set the value in the filter for the CTIOS_FILTER keyword to the String created in Step a.
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 6
Enable individual statistics as needed.
a.
Create an instance of the Arguments class.
b.
Set values in the Arguments instance. You must provide the skill group number and the peripheral 
number for each skill group for which you want to receive statistics. Use the SetValue(keyword, int) 
method signature. 
For example: use SetValue(CTIOS_SKILLGROUPNUMBER, sgNumber) where sgNumber is an 
integer for the skill group for which you want to receive statistics, and 
SetValue(CTIOS_PERIPHERALID, peripheralNumber) where sgNumber is an integer for the skill 
group for which you want to receive statistics.
Caution
The application must know the Skill Group ID, and the skill group’s Peripheral ID, for any 
skill group to monitor. The application cannot dynamically get these values from CTI OS 
Server.
c.
Use the Arguments instance as a parameter for the session’s EnableSkillGroupStatistics() method.
d.
Repeat steps b and c for each skill group for which you want to receive events.