There are probably better ways, but you could transfer the call to an extension that executes the script and drops the call after it finishes.

 

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:20 PM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] How to exit an IVR from menu-exec-app

 

Hi there,

 

 

I have a small Lua script that I run from an IVR

 

<menu name = "my_ivr" 

...

...

> 

...

<entry action = "menu-exec-app" digits="7" param="lua dosomething.lua" />

...

</menu>

 

 

By default, when I press 7 -  dosomething.lua runs and returns - and my_ivr repeats. I would like my_ivr to terminate when the lua script returns.

 

 

Is this possible?

 

 

 

Thanks in anticipation!

 

 

Phil