I have not had a chance to test my code below, but this should work!
Regards,
Kevin
Set vAgentExtension to the agents extension
Set vAgentWorkMode to one of the agent work modes defined below.
Set vURI to the correct TServer Name
SCXML CODE ******************************************
<onentry>
<script>
var Paramters = '{ "params" : {"20":"'+vAgentExtension+'","16":"'+vAgentWorkMode+'"}}';
var vURI = 'TServerName\\11';
var vMessage = JSON.parse(Paramters);
</script>
<session:fetch method="'tlib'" requestid="vRequestID" srcexpr="vURI">
<content _expr="vMessage"/>
</session:fetch>
</onentry>
SCXML CODE ******************************************
Included in the request above:
Creates instance of RequestAgentNotReady with required parameters set.
Parameters:
thisDN - DN of the controlling agent or Route Point.
agentWorkMode - The current work mode of the agent in question.
typedef enum _TAgentWorkMode {
AgentWorkModeUnknown = 0,
AgentManualIn = 1,
AgentAutoIn = 2,
AgentAfterCallWork = 3,
AgentAuxWork = 4,
AgentNoCallDisconnect = 5,
AgentWalkAway = 6,
AgentReturnBack = 7
}
Not included in the request above, but these are all of the parms:
Creates instance of RequestAgentNotReady with all parameters set.
Parameters:
thisDN - DN of the controlling agent or Route Point.
agentWorkMode - The current work mode of the agent in question.
thisQueue - The queue related to ThisDN
reasons - Additional data intended to specify reasons for and results of actions taken by the user.
extensions - An additional data structure intended to take account of switch-specific features that cannot be described by other parameters or in the original structure of user data.