Commit 7bbb3f31 authored by Jean-Pierre Thomasset's avatar Jean-Pierre Thomasset

Add documentation for Cti.pauseAgent and minor fixes

parent a97a8085
......@@ -403,7 +403,7 @@ Agent State Event
::
{"name":"AgentLogin","agentId":19,"phoneNb":"1000","since":1423839787,"queues":[8,14,170,4,1],"cause":""}
{"name":"AgentLogin","agentId":19,"phoneNb":"1000","since":1423839787,"queues":[8,14,170,4,1]}
* AgentReady
......@@ -421,19 +421,19 @@ Agent State Event
::
{"name":"AgentOnWrapup","agentId":19,"phoneNb":"1000","since":2,"queues":[8,14,170,4,1],"cause":"available"}
{"name":"AgentOnWrapup","agentId":19,"phoneNb":"1000","since":2,"queues":[8,14,170,4,1]}
* AgentRinging
::
{"name":"AgentRinging","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1],"cause":"available"}
{"name":"AgentRinging","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1]}
* AgentDialing
::
{"name":"AgentDialing","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1],"cause":"available"}
{"name":"AgentDialing","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1]}
* AgentOnCall
......@@ -441,7 +441,7 @@ Agent State Event
{"msgType":"AgentStateEvent","ctiMessage":
{"name":"AgentOnCall","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1],
"cause":"available","acd":false,"direction":"Incoming","callType":"External","monitorState":"ACTIVE"}}
"acd":false,"direction":"Incoming","callType":"External","monitorState":"ACTIVE"}}
......@@ -449,7 +449,7 @@ Agent State Event
::
{"name":"AgentLoggedOut","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1],"cause":"available"}
{"name":"AgentLoggedOut","agentId":19,"phoneNb":"1000","since":0,"queues":[8,14,170,4,1]}
Agent Error
......@@ -748,14 +748,19 @@ Cti.logoutAgent(agentId)
------------------------
Un log an agent
Cti.pauseAgent(agentId)
-----------------------
Change agent state to pause
Cti.pauseAgent(agentId, reason)
-------------------------------
Change agent state to pause.
* `agentId`: Id of the agent to set state for. Can be omitted to change current loggedin agent state.
* `reason`: Optional string to label the kind of pause to set.
Cti.unpauseAgent(agentId)
-------------------------
Change agent state to ready
* `agentId`: Id of the agent to set state for. Can be omitted to change current loggedin agent state.
Cti.listenAgent(agentId)
------------------------
Listen to an agent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment