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?
|