Author Message
SteffenJünger
Joined: Feb 3, 2017
Messages: 3
Offline
(AES SW Version: 7.0.0.0.2.13-0)

We post a MonitorStart request for a hunt-group with the Logical Device features

agentReady,
agentNotReady and
agentWorkingAfterCall.

The AES responds with True for all of them, but the only Events we'll receive from there are AgentLoggedOnEvent and AgentLoggedOffEvent.

Following is an example communication with the DMCC Dashboard:




Outgoing XML 1
<?xml version="1.0" encoding="utf-8"?>
<StartApplicationSession
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-354/appl_session">
<applicationInfo>
<applicationID>testTool</applicationID>
<applicationSpecificInfo>
<SessionLoginInfo xmlns="http://www.avaya.com/csta">
<userName xmlns="">CTuser</userName>
<password xmlns="">*****</password>
<sessionCleanupDelay xmlns="">5</sessionCleanupDelay>
<sessionID xmlns="" />
</SessionLoginInfo>
</applicationSpecificInfo>
</applicationInfo>
<requestedProtocolVersions>
<protocolVersion>http://www.ecma-international.org/standards/ecma-323/csta/ed3/privA</protocolVersion>
</requestedProtocolVersions>
<requestedSessionDuration>180</requestedSessionDuration>
</StartApplicationSession>
-----------------------
Incoming XML 1
<?xml version="1.0" encoding="UTF-8"?>
<StartApplicationSessionPosResponse
xmlns="http://www.ecma-international.org/standards/ecma-354/appl_session">
<sessionID>0C0C1D08F1B7CAE0EA6304B2C7C55A23-696</sessionID>
<actualProtocolVersion>http://www.ecma-international.org/standards/ecma-323/csta/ed3/privA</actualProtocolVersion>
<actualSessionDuration>180</actualSessionDuration>
</StartApplicationSessionPosResponse>
---------------------
Outgoing XML 2
<?xml version="1.0" encoding="utf-8"?>
<GetDeviceId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.avaya.com/csta">
<switchName>CM</switchName>
<extension>620044</extension>
</GetDeviceId>
-----------------------
Incoming XML 2
<?xml version="1.0" encoding="UTF-8"?>
<GetDeviceIdResponse xmlns="http://www.avaya.com/csta">
<device typeOfNumber="other" mediaClass="voice"
bitRate="constant">620044:CM:0.0.0.0:0</device>
</GetDeviceIdResponse>
---------------------
Outgoing XML 3
<MonitorStart 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">
<monitorObject> <deviceObject typeOfNumber="other"
mediaClass="notKnown">620044:CM:0.0.0.0:0</deviceObject>
</monitorObject> <requestedMonitorFilter> <logicalDeviceFeature>
<agentNotReady>true</agentNotReady> <agentReady>true</agentReady>
<agentWorkingAfterCall>true</agentWorkingAfterCall>
</logicalDeviceFeature> </requestedMonitorFilter> </MonitorStart>
---------------------
Outgoing XML 3
<MonitorStart 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">
<monitorObject> <deviceObject typeOfNumber="other"
mediaClass="notKnown">620044:CM:0.0.0.0:0</deviceObject>
</monitorObject> <requestedMonitorFilter> <logicalDeviceFeature>
<agentNotReady>true</agentNotReady> <agentReady>true</agentReady>
<agentWorkingAfterCall>true</agentWorkingAfterCall>
</logicalDeviceFeature> </requestedMonitorFilter> </MonitorStart>
-----------------------
Incoming XML 3
<?xml version="1.0" encoding="UTF-8"?>
<CSTAErrorCode
xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3">
<operation>generic</operation>
</CSTAErrorCode>
---------------------
Outgoing XML 4
<MonitorStart 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">
<monitorObject> <deviceObject typeOfNumber="other"
mediaClass="notKnown">620044:CM:0.0.0.0:0</deviceObject>
</monitorObject> <requestedMonitorFilter> <logicalDeviceFeature>
<agentNotReady>true</agentNotReady> <agentReady>true</agentReady>
<agentWorkingAfterCall>true</agentWorkingAfterCall>
</logicalDeviceFeature> </requestedMonitorFilter> </MonitorStart>
---------------------
Outgoing XML 4
<MonitorStart 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">
<monitorObject> <deviceObject typeOfNumber="other"
mediaClass="notKnown">620044:CM:0.0.0.0:0</deviceObject>
</monitorObject> <requestedMonitorFilter> <logicalDeviceFeature>
<agentNotReady>true</agentNotReady> <agentReady>true</agentReady>
<agentWorkingAfterCall>true</agentWorkingAfterCall>
</logicalDeviceFeature> </requestedMonitorFilter> </MonitorStart>
-----------------------
Incoming XML 4
<?xml version="1.0" encoding="UTF-8"?>
<MonitorStartResponse
xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3">
<monitorCrossRefID>8193</monitorCrossRefID>
<actualMonitorFilter>
<logicalDeviceFeature>
<agentNotReady>true</agentNotReady>
<agentReady>true</agentReady>
<agentWorkingAfterCall>true</agentWorkingAfterCall>
</logicalDeviceFeature>
</actualMonitorFilter>
</MonitorStartResponse>
-----------------------
Incoming XML 9999
<?xml version="1.0" encoding="UTF-8"?>
<AgentLoggedOnEvent
xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3">
<monitorCrossRefID>8193</monitorCrossRefID>
<agentDevice>
<deviceIdentifier typeOfNumber="explicitPrivate:localNumber"
mediaClass="notKnown" bitRate="constant">4301:CM::0</deviceIdentifier>
</agentDevice>
<agentID>8301</agentID>
<acdGroup typeOfNumber="other" mediaClass="notKnown"
bitRate="constant">620044:CM::0</acdGroup>
</AgentLoggedOnEvent>
MartinFlynn
Joined: Nov 30, 2009
Messages: 1931
Offline
Only Agent Login & Logout events are provided to third party applications. The other agent state changes are not available to you.

Martin
SteffenJünger
Joined: Feb 3, 2017
Messages: 3
Offline
Thanks, so is there a way to make it work or is there any other way for a Third Party App to monitor if an Agent switches to AUX, ACW, Manual/AutoIn or something similar? We're a little lost on that, I'm afraid.
MartinFlynn
Joined: Nov 30, 2009
Messages: 1931
Offline
You will need to periodically query the agent's state by performing a getAgentState request to AE Services. If you search this forum (and the JTAPI forum). there are several other threads that cover this topic.

Martin
SteffenJünger
Joined: Feb 3, 2017
Messages: 3
Offline
Ok, thanks for your help!

That's sad, periodical queries is exactly what I was trying to avoid :-)
I'm confused why the server responds with True, tho.
Go to:   
Mobile view