Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
Chapter 8      Session Object
Notes On Message Filters
8-46
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1) 
    {
        //Do process the event
    }
}
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 should 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 statistic. To stop receiving statistics for a given skill group, the 
application must invoke DisableSkillGroupStatistics 
'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