I don't really have any ideas.
If pressing the hold/resume button on the call executes that particular chain, then your custom command should execute as well.
If you see your new command added to the command chain before the default command, it should show it as being executed at least in the logfile, like the normal command does:
DEBUG InteractionWorkspace.Infrastructure.ChainOfCommand - Execute of Chain of Command InteractionVoiceHoldCall -> Name:HoldCall Type:Genesyslab.Desktop.Modules.Voice.Model.Interactions.HoldCallCommand
INFO InteractionWorkspace.Voice.InteractionVoiceCommand - HoldCallCommand
Original Message:
Sent: 02-26-2024 05:41
From: Faris Hasan
Subject: Customized Commands are not executing in Workspace Desktop Edition
Hi Anders,
Thanks for the reply, Hope you're doing well!
The log File say same as you shared:
DEBUG InteractionWorkspace.Infrastructure.ChainOfCommand - Execute of Chain of Command InteractionVoiceHoldCall -> Name:HoldCall Type:Genesyslab.Desktop.Modules.Voice.Model.Interactions.HoldCallCommand
During debugging, I found that InteractionVoiceHoldCall chain contains default command i.e. Name:HoldCall and for InteractionVoiceResume Chain the name of the default command is ResumeCommand. Following are the snapshots of Debugging View:
As far as I know that this is normal, All commands chain contains list of default commands and we can also insert our customized commands in any chain to achieve our requirements using customizations.
However, I tried inserting command before and after these default commands but nothing works for me. On other hand I tried, BundleClose and InteractionVoiceReleaseCall Chains and they all are executing normally even they all contains some default commands despite that my custom commands are working.
I am customizing WDE from a long time and I never got this issue. But it's my first time that I am using these commands chain.
Best Regards,
Faris Hasan
------------------------------
Faris Hasan
Fourth Dimension Systems LLC
Original Message:
Sent: 02-26-2024 05:08
From: Anders Vejen
Subject: Customized Commands are not executing in Workspace Desktop Edition
Hi Faris
Although I use a different way to add to the chain-of-command the above seems ok and the right chains (I saw the same ones in my log file).
What does your log file say after:
DEBUG InteractionWorkspace.Infrastructure.ChainOfCommand - Execute of Chain of Command InteractionVoiceHoldCall -> Name:HoldCall Type:Genesyslab.Desktop.Modules.Voice.Model.Interactions.HoldCallCommand
BR Anders
------------------------------
Anders Vejen
NetDesign A/S, a part of Nuuday A/S
Original Message:
Sent: 02-25-2024 03:16
From: Faris Hasan
Subject: Customized Commands are not executing in Workspace Desktop Edition
Hi Guys,
I am customizing WDE and want to customize Hold and Resume Call command. I am adding my custom commands in the following chains:
- InteractionVoiceHoldCall
- InteractionVoiceResume
commandManager.CommandsByName["InteractionVoiceHoldCall"].Insert(0, new CommandActivator() { CommandType = typeof(OnHoldStart) }); commandManager.CommandsByName["InteractionVoiceResume"].Insert(0, new CommandActivator() { CommandType = typeof(OnHoldEnd) });
But Unfortunately, it is not executing these two custom commands. However, I am also using other custom commands in different chains and they are executing successfully.
Let me know, whether I am missing anything here? or is there any other way around to capture Before Hold and Before Resume Event.
Best Regards,
Faris Hasan
#GenesysEngagePremDev
------------------------------
Faris Hasan
Fourth Dimension Systems LLC
------------------------------