This function is used to set the agent state to Ready. When the state is set to Ready, then the agent starts receiving calls from the queue. However, the agent must be logged in to at least one queue before this function is invoked.
If there is an error in the request, handle it as explained in Handling errors.
This function uses the following parameters:
Parameters of the agentReady function
|agentId||The agent ID on the automatic call distributor (ACD). This is a required parameter and it is populated during the login request.|
|workMode||The work mode status of the desired agent.|
|options||The parameter that holds optional properties that are implementation specific.|
|success||The call back function that is invoked on success.|
|failure||The call back function that is invoked on failure.|
To send the agent ready request to the CTI server, copy the function from the interface file and implement it.