If you have any code inside tests of session:ready those will all fail once it hangs up. Usually you can do a few catchall actions at the end of the script but it can't involve the session which no longer will allow any methods to be executed. You might want: https://freeswitch.org/confluence/display/FREESWITCH/api_hangup_hook On Tue, Jul 31, 2018 at 8:12 PM, Tom Fielding <tomfieldingpersonal@gmail.com
wrote:
Hi everyone,
I have a Lua script running from dial plan.
However, when the call hangs up, the Lua script stops. I need the script to run completely before being stopped by Hangup.
Is this possible?
Do I need to spawn another script using luarun to accomplish this?
Thanks, T
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Anthony Minessale II Founder, FreeSWITCH. http://freeswitch.com https://youtu.be/l_hOxzCt6X4 https://www.youtube.com/watch?v=oAxXgyx5jUw https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA