Genesys CTI User Forum > Genesys-related Development
Not Getting Custom Command in WDE
Niranjan:
Hi Guys,
in Extension sample modules in initialize method I gave a command called
commandManager.InsertCommandToChainOfCommandBefore("InteractionVoiceAnswerCall", "AnswerCall", new List<CommandActivator>() { new CommandActivator() { CommandType = typeof(OnAnswerCallCommand), Name = "AnswerCall" } });
but my custom command class is not executing when I answered a call from IWS,
Same problem is happening to ShowInteractionWindow Command Also, and I cant able to get the IInteractionVoice object in WDE.
commandManager.InsertCommandToChainOfCommandAfter("ShowInteractionsWindow", "ShowInteractionsWindow", new List<CommandActivator>() { new CommandActivator() { CommandType = typeof(OnNewShowIntrWindow), Name = "ShowInteractionsWindow" } });
So please help me to resolve this issue
Thanks and Regards
Niranjan M
Kubig:
Mentioned commands seem to be not exist. Check them against the documentation.
Niranjan:
Hi Kubig,
Thanks for your reply,
I searched in IWS 8.5.1 Developers Book
Section: Open and Restore Interaction Windows
Chain Name : ShowInteractionsWindow
and also here one more major issue is I cant able to get the IInteractionVoice Object parameter, I tried to get the IInteractionVocie in OnMakecall Event and EventDialing, but here I am getting IInteractionVoice object as null, so where and how I can retrieve the IInteractionVoice object.
Regards
Niranjan M
Kubig:
The mentioned commands do not exist - so use the properly commands for the purposes. About the IInboundVoice, try to post your code to find out the root-cause.
Niranjan:
Here is my Sample code in OnMakeCall Command
public bool Execute(IDictionary<string, object> parameters, IProgressUpdater progress)
{
// To go to the main thread
if (Application.Current.Dispatcher != null && !Application.Current.Dispatcher.CheckAccess())
{
object result = Application.Current.Dispatcher.Invoke(DispatcherPriority.Send, new ExecuteDelegate(Execute), parameters, progress);
return (bool)result;
}
else
{
log.Info("Execute on make call event...");
IInteractionVoice _ixnvce = parameters["CommandParameter"] as IInteractionVoice;
if (_ixnvce != null)
{
log.Debug("Voice is Not Null");
}
else
{
log.Debug("ixnvoice is null in on make call Command");
}
}
}
Here Always I am getting interaction voice as null. suggest me if any other areas or other methods to get the IInteractionVoice Object
Regards
Niranjan M
Navigation
[0] Message Index
[#] Next page
Go to full version