https://wiki.freeswitch.org/wiki/IVR_Menu#See_Also
Looks like you can map multiple actions to the same digit, so you can probably do something like:
<entry action = "menu-exec-app" digits="7" param="lua dosomething.lua" />
<entry action = "menu-exit” />
The documentation states that actions will be executed on sequence. If the operations are executed asynchronously (ie the IVR exits while the script is still running), you
can probably set the value of a variable (flag), exit the menu, then have a condition on the main dialplan that invoked the ivr menu, and this condition will check for the flag and execute the script accordingly.
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
On Behalf Of Phillip Jones
Sent: Monday, October 06, 2014 12:42 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] How to exit an IVR from menu-exec-app
Hector
- Yeah thanks for that. I am not trying to drop the call. I want to IVR to terminate and pass control back to the point in the dialplan that called it.