Author Message
MartínIndurain2
Joined: Mar 17, 2014
Messages: 7
Offline
Hi,

I try to move an agent to Aux Work using TSAPI, and I found that SetAgentState method fails when using a two digits reason code. (error: GENERIC_UNSPECIFIED)

TSAPI documentation says that two digits are supported in Private Data version 7. I have tested on two different environments, with AES 5-2-4-114-0 and 5-2-0-98-0, and Private Data version 8.

Is there a limitation with Private Data version 8?

Below is a copy from TSAPI Excersiser. The same works ok if using a 1 digit reason code.
Thanks in advance
Martín

10:45:01 0 CONFIRM: Open Stream: API Version: ST2
Lib Version: AES4.2.2 Build 451
Tsrv Version: 5.2.4 Build 540
Drvr Version: 5.2.4 Build 540
Private Data: Vendor: ECS
Data: 8
...
10:46:38 0 SERVICE: Set Agent State: Device: 669 Agent Mode: Not Ready Agent ID: 4444
Agent Group: (null) Agent Password: (null)
Private Data: Vendor: ECS
Event Type : ATT_SET_AGENT_STATE
Service: Set Agent State
Work Mode: Aux Work
Reason Code: 10
Enable Pending: FALSE
10:46:39 0 CONFIRM: Universal Failure: Error: GENERIC_UNSPECIFIED
10:46:43 0 SERVICE: Close Stream
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
In orde for Communication Manager to accept two digit reason codes, you must configure "Two-Digit Aux Work Reason Codes? y" for the CTI link on Communication Manager. You will need to busyout the link before changing it so the commands on Communication manager to do this are:

busyout cti-link N
change cti-link N
release cti-link N

where N is the cti-link number.

Once that is done, you should be able to send two digit reason codes.

Martin
MartínIndurain2
Joined: Mar 17, 2014
Messages: 7
Offline
Thanks for your quick reply.
RenatoEduardoConceição
Joined: Jun 24, 2015
Messages: 3
Offline
Hi

I have made the changes in cti link as you have talked but I received the erro VALUE_OUT_OF_RANGE.
Could you please help me?
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
It sounds like your private protocol version is less than 7.

If you are using TSAPI Exerciser, before you "Start Exerciser Session", click "Private Data". Set "ECS Private Data Version" to 7 or greater. Click OK.

Now you can click "Start Exerciser Session".

Martin
Go to:   
Mobile view