Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
9-43
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Chapter 9 Agent Object
Methods
errorcode
An output parameter (return parameter in VB) that contains an error code
from
from
in
Return Values
Default CTI OS return values. See
Remarks
The recipient receives the message via the OnChatMessage event.
SetAgentState
The SetAgentState method requests a new agent state. Login and Logout are valid
agent states and can be set using the SetAgentState method as well as by using the
Login and Logout methods.
agent states and can be set using the SetAgentState method as well as by using the
Login and Logout methods.
Syntax
C++:
int SetAgentState(Arguments& args)
COM:
HRESULT SetAgentState (/*[in]*/ IArguments *args,
/*[out,retval]*/ int * errorcode)
VB:
SetAgentState (args As CTIOSCLIENTLib.IArguments) As Long
Java:
int SetAgentState(Arguments args)
.NET:
CilError SetAgentState(Arguments args)
Message (optional)
STRING The text of the user message. Maximum
message size is 255 bytes.
LoginName (optional)
STRING Login name of the agent to receive the chat
message. To chat to an agent by login name,
set “LoginName” and “Target” to the login
name of the agent to which to chat.
set “LoginName” and “Target” to the login
name of the agent to which to chat.
Table 9-13 SendChatMessage Parameters