Руководство Разработчика для Cisco Cisco Computer Telephony Integration Option 9.0
8-32
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 8 Session Object
Notes On Message Filters
Filtering Skillgroup Statistics
One of the most common applications for a filter mode application is the processing of only skill group
statistics. For this purpose, the specialized filter FilterTarget=SkillGroupStats is defined. When set, this
filter indicates that the CTI OS server forward skill group statistics to the client application, whether or
not any agents are logged in.
statistics. For this purpose, the specialized filter FilterTarget=SkillGroupStats is defined. When set, this
filter indicates that the CTI OS server forward skill group statistics to the client application, whether or
not any agents are logged in.
After the filter is set, the client application needs to invoke the EnableSkillGroupStatistics(...) method
for each skill group that it is expecting to receive statistics. To stop receiving statistics for a given skill
group, the application must invoke the DisableSkillGroupStatistics method.
for each skill group that it is expecting to receive statistics. To stop receiving statistics for a given skill
group, the application must invoke the DisableSkillGroupStatistics method.
'register to receive skill group statistics
sFilterExpression=”FilterTarget=SkillGroupStats"
'call SetMessageFilter
m_session.SetMessageFilter sFilterExpression
'Enable statistics for skills 78,89 and 90 in peripheral 5004
Private Sub m_Session_OnMonitorModeEstablished(ByVal pArguments As Arguments)
Dim m_Args = new Arguments
'For Skill 78
m_Args.AddItem "SkillGroupNumber",78
m_Args.AddItem "PeripheralID",5004
m_session.EnableSkillGroupStatistics m_Args
'For Skill 89
m_Args.Clear
m_Args.AddItem "SkillGroupNumber",89
m_Args.AddItem "PeripheralID",5004
m_session.EnableSkillGroupStatistics m_Args
'For Skill 90
m_Args.Clear
m_Args.AddItem "SkillGroupNumber",90
m_Args.AddItem "PeripheralID",5004
m_session.EnableSkillGroupStatistics m_Args
'Don't need arguments any more
Set m_Arg = Nothing
End Sub
Private Sub MyObjectClass_OnCleanupApplication()
Dim m_Args = new Arguments
'For Skill 78
m_Args.AddItem "SkillGroupNumber",78
m_Args.AddItem "PeripheralID",5004
m_session.DisableSkillGroupStatistics m_Args
'For Skill 89
m_Args.Clear
m_Args.AddItem "SkillGroupNumber",89
m_Args.AddItem "PeripheralID",5004
m_session.DisableSkillGroupStatistics m_Args
'For Skill 90
m_Args.Clear
m_Args.AddItem "SkillGroupNumber",90
m_Args.AddItem "PeripheralID",5004
m_session.DisableSkillGroupStatistics m_Args
'Don't need arguments any more
Set m_Arg = Nothing
End Sub