[Freeswitch-users] How to ensure Lua script runs completely before hangup is executed
Anthony Minessale
anthony.minessale at gmail.com
Wed Aug 1 18:19:43 UTC 2018
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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180801/e5132966/attachment.html>
More information about the FreeSWITCH-users
mailing list