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

다운로드
페이지 640
 
Chapter 4      Building Your Application
Working with Skill Group Statistics
4-72
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Step 5
Set the message filter as described on page 4-38.
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 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.
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. 
Step 7
When the desktop application no longer requires the statistics for a certain skill 
group, the application can disable those statistics. 
a.
Create an instance of the Arguments class.