Hello,
I'm trying to set agent (ready,notReady) states manually via dmcc sdk using release 7.1. Can someone please mention a flow of how this can be achieved. Currently I'm using SetAgentState() to login an agent and it works fine. The agent gets login in not ready state.
When I try to setAgentState() to ready it's not happening. Reason unknown.
Here is my code:
public void Ready(string agentId, string agentPassword, string DeviceId)
{
try
{
//serviceProvider.getThirdPartyCallController.MakeCall("257", "*17" + "219", null); //Tried making a call but no sucess
//Agent Login
ThirdPartyCallController.SetAgentStateParameters param = new ThirdPartyCallController.SetAgentStateParameters();
//TODO: before agent login, check if the agent is already logged in
//if(serviceProvider.getThirdPartyCallController.GetAgentState(DeviceId, null))
param.AgentId = agentId;
param.Password = agentPassword;
param.Device = DeviceId;
//param.RequestedAgentState = ThirdPartyCallController.RequestedAgentState.AM_LOG_IN;
[b]param.WorkMode = ThirdPartyCallController.WorkMode.AutoIn[/b]; // does this works or something else is required.
serviceProvider.getThirdPartyCallController.SetAgentState(param, null);
}
catch (Exception ex)
{
}
}
Any help would be highly appreciated. Thanks