Hi, I´m customizing WDE. I login my agent in place P305, in the extension 305, and acd position acd_305. I want to make a call programatically to extension 202, so first in my custom module I obtaing Agent, Voice Service and Channel Service as following:
agent = unityContainer.Resolve<Genesyslab.Desktop.Modules.Core.Model.Agents.IAgent>();
IEnterpriseServiceProvider enterpriseServiceProvider = agent.EntrepriseService;
voiceService = enterpriseServiceProvider.Resolve<IVoiceService>("voiceService");
channelService = enterpriseServiceProvider.Resolve<IChannelService>("channelService");
All this atributes are static, and can be obtained from other classes.
When I want to make the call, i invoke the following method:
voiceService.MakeCall(agent.EnterpriseAgent, channelService.GetChannel("TServerNEAX"), "202@SwitchNEAX", Genesyslab.Enterprise.Model.Interaction.MakeCallType.Regular, "", kvp, kvp, kvp, 20000);
Exception tells me my agent dn is not valid. But if I call 202 naturally from interaction bar, the call can be executed without problems.
Any ideas?
Thank you!