Author Message
psathaye.avaya.com
Joined: Mar 12, 2020
Messages: 17
Offline
Hello,

I am trying to use DMCC XML API and trying to loggin an agent using SetAgentState.

Below is my XML File.

<?xml version="1.0" encoding="utf-8"?>
<SetAgentState
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3">
<device typeOfNumber="other" mediaClass="notKnown">6XXXX:MYSWITCH:XX.XX.XX.XX:0</device>
<requestedAgentState>loggedOn</requestedAgentState>
<agentID>6XXXXX</agentID>
<password>123456</password>
<group>1</group>
<extensions>
<privateData>
<private>
<SetAgentStatePrivateData
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.avaya.com/csta">
<workMode>autoIn</workMode>
<reasonCode>1</reasonCode>
</SetAgentStatePrivateData>
</private>
</privateData>
</extensions>
</SetAgentState>

I am able to set ready, loggedOff, notReady using same XML message, but when I tried to use loggedOn, I am getting invalidDeviceID exception.

Can anybody help?
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
Your password is incorrect. It should be in ASCII format = 313233343536.

Martin
psathaye.avaya.com
Joined: Mar 12, 2020
Messages: 17
Offline
Thank you very much @MartinFlynn.

It worked.

It should be mentioned in the description of Password parameter in the DMCC XML doc.

"password Optional Specifies the agent password. It is used when the requestedAgentState is set to loggedon, otherwise it is ignored."
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
is the station you are trying to logon to already have an agent logged on?
or conversely is the agent you are trying to login already logged in to a different station?

Use the SAT command 'list agents' to check.
Go to:   
Mobile view