Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 640
Chapter 9      Agent Object
Methods
9-42
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Remarks
Supported for use with IPCC only. See 
information.
SendChatMessage
The SendChatMessage method sends asynchronous chat-like messages between 
CTI OS clients. Users can specify a distribution of one or more clients, and attach 
a text message. 
Syntax
C++:
int SendChatMessage (Arguments& args)
COM:
HRESULT SendChatMessage (/*[in]*/ IArguments *args, 
/*[out,retval]*/ int * errorcode)
VB:
SendChatMessage (args As CTIOSCLIENTLib.IArguments) As Long)
Java:
int SendChatMessage(Arguments args)
.NET:
CilError SendChatMessage(Arguments args)
Parameters
args
Input parameter in the form of an Arguments array that contains one or more 
of the SendChatMessage parameters listed in 
.
Table 9-13 SendChatMessage Parameters
Keyword
Type
Description
Distribution (required)
STRING Currently the only supported value is 
“agent”.
Target (optional)
STRING When the Distribution is set to 
DistributeToAgent, this field must be 
included with the AgentID of the intended 
recipient. When the LoginName is set to the 
LoginName of the agent to receive the chat 
message, this field must also be set to the 
login name of the agent to which to chat.