I’m not sure if there’s a configuration option toautomatically mark an interaction done when the agent changes state to Not Ready, but you can do it programmatically.
You need to insert a command into the “MediaVoiceNotReady” chain of command (before or after “NotReady”) and from there launch the “InteractionVoiceClose” chain of command.
voice.mark-done-on-release
• Default Value: false
• Valid Values: true, false
• Changes take effect: When the application is started or restarted.
• Description: Specify if an interaction should be closed automatically if a TServer
Release event is received. This option can be overridden by a routing strategy, as
described in Overriding Options by Using a Routing Strategy.
Alternatively if you are truly only wanted to do this upon going Not Ready, I would agree with Gabi’s suggestion. Genesys doc site has good information on how to execute chain of commands. The code samples provided with WDE developer install includes chain of command sample.