Cisco Cisco Computer Telephony Integration OS 8.5 Entwickleranleitung
4-50
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
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 page 4-20.
Step 2
Subscribe for events for the session, as described on page 4-21.
Note
You must register to receive session and skill group events; therefore, in the
AddEventListener() method you must use as a parameter the field
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 page 4-21.
Step 4
Connect the desktop application to the CTI OS Server, as described on page 4-21.
Step 5
Set the message filter as described on page 4-26.
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.
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.
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.
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 be aware of 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.
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.