[Freeswitch-users] hangup from LUA script

Gandalf Corvotempesta gandalf.corvotempesta at gmail.com
Wed Nov 25 10:00:04 UTC 2020


Il giorno mar 24 nov 2020 alle ore 20:07 Abaci B <abaci64 at gmail.com> ha
scritto:

> 1) You mean the session is not ended or the script is still running? doing
> a hangup doesn't automatically end the script. You can do *return 'exit'*
> from the script (not from within a function in the script) to exit the
> script.
>

Even with return 'exit' the calling mobile phone is still connected to the
PBX. I need to close the call hanging up all sides.


> 2) Why don't you put the entire functionality in the lua script using
> session:playAndGetDigits() and then use a goto if you want to ask again for
> the order number.
>

Good idea, i'll do in that way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20201125/0a4ec844/attachment.html>


More information about the FreeSWITCH-users mailing list