Cisco Cisco Computer Telephony Integration OS 8.5 Guia Do Programador

Página de 546
 
6-3
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 6      Event Interfaces and Events
ISessionEvents Interface
OnCallTranslationRouteEvent
The TranslationRouteEvent is a pre-call indication. The event indicates the 
pending arrival of a call, and provides early access to the call context information. 
From a call flow perspective, this event can be used to begin an application or 
database lookup for the call context data before the call actually arrives at the 
agent’s teleset. 
The contact is uniquely identified by the ICMEnterpriseUniqueID, which is 
a field based on the ICM’s 64-bit unique key (RouterCallKeyDay and 
RouterCallKeyCallID
). This event does not indicate the creation of a Call 
object on the CTIOS server – only that the contact is being tracked. This is 
sufficient to be able to get and set data, which enables some powerful 
data-prefetching applications. When a OnCallBeginEvent follows for this same 
contact, the ICMEnterpriseUniqueID field will be send along with the call 
data. At that point, a custom application can set the call data on the appropriate 
call object.
Syntax
C++:
void OnCallTranslationRouteEvent(Arguments& args)
COM:
void OnCallTranslationRouteEvent (IArguments * args)
VB:
session_OnCallTranslationRouteEvent (ByVal args As 
CtiosCLIENTLib.IArguments)
Parameters
args
Arguments array containing the following fields.
Keyword
Type
Description
ICMEnterpriseUniqueID
STRING
This string is a globally unique key 
for this contact, which corresponds 
to the ICM 64 bit key. This 
parameter can be used to match 
this contact to a follow-on call 
event.