in Extension sample modules in initialize method I gave a command called
commandManager.InsertCommandToChainOfCommandBefore(“InteractionVoiceAnswerCall”, “AnswerCall”, new List() { 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() { new CommandActivator() { CommandType = typeof(OnNewShowIntrWindow), Name = “ShowInteractionsWindow” } });
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.
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.
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
How yo answered the call? I f you are doing with desktop button it must work.
I was trying to work with the chain of command Release Call, and it never worked for me, because release chain is only executing when you press the button release call, not when you release call with hardphone or the client release…
I can see the InteractionVoiceReleaseCall on the documentation but not the ShowInteractionsWindow…
if I will get the command on showinteractionswindow I can able to get the IInteractionVoice Command in this window, and I have set of validations to perform in this control.
Ok, so if you are using the ‘ShowInteractionsWindow’ command chain that is dependent on which version of WDE you are using, if it is 8.5 or later then by default it does not open an InteractionWindow
There is a config option that you can use to set it to the old mode where you get separate windows for each interaction: