Not Getting Custom Command in WDE

Hi Guys,

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” } });

So please help me to resolve this issue

Thanks and Regards
Niranjan M

Mentioned commands seem to be not exist. Check them against the documentation.

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

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.

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

And on what command are you executing that?

MediaVoiceMakeCall Command

Try to execute that on Dialing event (do not know the exactly name of the command)

What are you trying to do once you have the IInteractionVoice? It might help if we can understand what you are trying to achieve.

On the MediaVoiceMakeCall the ‘CommandParameter’ is the IMediaVoice rather than the IInteractionVoice.

Pete.

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…

https://docs.genesys.com/Documentation/IW/8.5.1/Developer/Voice

Yes I answerd the call but the Command Control is not going in to the onAnswerCallcommand Class.

and I Need the IInteractionVoice object to release the call with my custom button.

Hi Pete,

Thanks for your Reply

Please find the below link it contains the command called showinteractionswindow

https://docs.genesys.com/Documentation/IW/latest/Developer/Windows#Open_and_Restore_Interaction_Windows

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.

Regards
Niranjan M

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:

interaction-bar.enable-quick-access = false

Thanks Pete,

it helped me a lot. now a new interaction window is opening for each call, and I can able to get the control over the windows now,

Thanks a lot once again.

Regards
Niranjan M