Cisco Cisco Computer Telephony Integration Option 8.5 개발자 가이드
Chapter 4 Building Your Application
Connecting to the CTI OS Server
4-38
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
This example works as follows:
•
The first key-value pair,
S_MESSAGEID + "=" +
CtiOs_Enums.EventID.eAgentStateEvent
, serves to request events with a
message ID equal to eAgentStateEvent; that is, it requests agent state events.
•
The second key-value pair,
S_AGENTID + "=5128"
, specifies that the request is
for the agent with the ID 5128.
•
The result of the filter then is that the connection will receive agent state
events for agent 5128.
events for agent 5128.
Filter Keys
Filter keys can be any known key value used by CTI OS. These keys have
corresponding fields in the CtiOs_IKeywords interface.
corresponding fields in the CtiOs_IKeywords interface.
Note
When constructing the filter String, use the fields that begin with “S_”, as
these are the String values for the key.
these are the String values for the key.
For example, in
Java:
String sFilter = S_AGENTID + "=5128,5129,5130";
In this example, S_AGENTID is the String representation of the key indicating an
Agent ID.
Agent ID.
Filtering for Events for Monitored Calls or Monitored Agents
If a client filter mode application wants to filter for events for monitored calls, the
application should do the following:
application should do the following:
•
Create the filter
•
Check events to verify that the CTIOS _MONITORED parameter is present
and is TRUE
and is TRUE
•
Ignore events if the CTIOS_MONITORED parameter is missing or FALSE