Author |
Message |
|
|
sanjay.kumar
Joined: Jul 12, 2017
Messages: 8
Offline
|
I am using the DMCC POPUP application in c#. In which all the events and functionality is working fine.
But i am facing only one issue is that I am not able to getting the Agent Login/Logout events.
I am exposing all event handler and their response in the code as below-
serviceProvider.getThirdPartyCallController.OnAgentLoggedOffEvent += new AgentLoggedOffEventHandler(getThirdPartyCallController_OnAgentLoggedOffEvent);
serviceProvider.getThirdPartyCallController.OnAgentLoggedOnEvent += new AgentLoggedOnEventHandler(getThirdPartyCallController_OnAgentLoggedOnEvent);
serviceProvider.getThirdPartyCallController.OnAgentLoginExtensionEvent += new AgentLoginExtensionEventHandler(getThirdPartyCallController_OnAgentLoginExtensionEvent);
serviceProvider.getThirdPartyCallController.OnGetAgentLoginResponse += new GetAgentLoginResponseHandler(getThirdPartyCallController_OnGetAgentLoginResponse);
serviceProvider.getThirdPartyCallController.OnGetAgentStateResponse += new GetAgentStateResponseHandler(getThirdPartyCallController_OnGetAgentStateResponse);
serviceProvider.getThirdPartyCallController.OnSetAgentStateResponse += new SetAgentStateResponseHandler(getThirdPartyCallController_OnSetAgentStateResponse);
But when suppose agent "A" is login into the extension"100" then i am not getting any event.
I am using DMCC 7.1.
So please help me out on this issue....
Regards
Sanjay
Mb- +919911957379
EMail- sanjayfromit@gmail.com
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1919
Offline
|
The code you included registers callback methods but it does not actually start the monitor. You will need to start a monitor on the Huntgroup number. This is the same as monitoring a station except you must request the Agent Login/Logoff events (rather than Call control events, like Delivered/Established) and must monitor a Huntgroup number, rather than a station number.
Martin
|
|
|
|
|
sanjay.kumar
Joined: Jul 12, 2017
Messages: 8
Offline
|
Hello Martin thanks for your reply.
So Can I registered and monitored the both Hunt group and Extension in single PUPUP application with DMCC.
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1919
Offline
|
It is not possible to register a Huntgroup, though you may place a Call Control monitor on it to get Agent Login/Logout events.
It IS possible to monitor many Hunt Groups and Extensions from a single application.
Martin
|
|
|
|
|
sanjay.kumar
Joined: Jul 12, 2017
Messages: 8
Offline
|
Hello Martin thanks your quick response,
currently i am registered and monitored a single extension using DMCC. So what should i do to getting agent login logoff event and also perform all functionality of extension like call answer ,hangup,conference,transfer,hold,unhold,make call.
Currently i am successfully running all all functionality of extension like call answer ,hangup,conference,transfer,hold,unhold,make call. only left the agent login logoff.
so please suggest the way how to implement this agent login log off with my existing application...
please help.
|
|
|
|
|
sanjay.kumar
Joined: Jul 12, 2017
Messages: 8
Offline
|
Hello Martin,
I am registering the terminal with extension ID using DMCC .net api in my application. So I want to know on my application when agent is login and logoff on this extension which i registered for monitoring using my application.
Please help...
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1919
Offline
|
If you want to know which agent (if any) is logged in at a particular station, you can periodically call serviceProvider.GetPhysicalDeviceInformation() to request that AE Services send you the Physical Device Information.
You must have already setup a callback to receive the response. The response will contain a ServiceProvider.GetPhysicalDeviceInformationResponseArgs which contains getOtherLogicalDeviceList(), a list of logical devices. This will contain the Agent ID.
|
|
|
|
|
sanjay.kumar
Joined: Jul 12, 2017
Messages: 8
Offline
|
Thank you very much Martin for your support.
|
|
|
|
|
Ahmadqadri
Joined: Oct 8, 2018
Messages: 54
Offline
|
Can you specify the order in which the functionalities of dmcc should be called.
1) For example a) StartAppSession. b) GetDeviceId and so on..
2) Also specify what methods of serviceProvider.dll are used to login and logout an agent. (cant find them)
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1919
Offline
|
1. You should be able to get this information from the Programmers Guide and the SimpleRecord sample application.
2. The basic format is something like the following:
ThirdPartyCallController.SetAgentStateParameters param= new ThirdPartyCallController.SetAgentStateParameters();
param.AgentId = "20000";
param.Password = "1234";
param.Device = stationID;
param.RequestedAgentState = ThirdPartyCallController.RequestedAgentState.AM_LOG_IN;
serviceProvider.getThirdPartyCallController.SetAgentState(param, null);
Other state changes are the same but the parameters might vary a bit. You can learn more about the parameters by experimenting with the DMCC Dashboard. This is a test tool that is included in the .Net SDK.
Martin
|
|
|
|
|
Ahmadqadri
Joined: Oct 8, 2018
Messages: 54
Offline
|
Thank you for your response it was really helpful.
I have another question, How can I pass login Access Code defined in feature access codes.
Because on my phone I have to dial "*15AgentIdPassword" to for agent login.
Actually what I am looking for is a method like AgentLogin(AgentId, Password). In the above reply you mentioned about setting agent state. It doesnt perform the login for an agent.
|
|
|
|
|
MartinFlynn
Joined: Nov 30, 2009
Messages: 1919
Offline
|
ThirdPartyCallController.SetAgentState() can be used to login an agent. There is no need to use an access code when performing a Call Control operation such as this. The RequestedAgentState tells Communication Manager what state you want the agent to be in.
BTW. It isalso possible to use DMCC to make a call to (or to go off-hook and dial) the FAC + Agent ID + Password.
Martin
|
|
|
|
|
Ahmadqadri
Joined: Oct 8, 2018
Messages: 54
Offline
|
Thank you so much martin !!
|
|
|