[Freeswitch-users] Re- End Lua script after HangupHook handled without all the extra code to handle the return to the function

Michael Collins msc at freeswitch.org
Tue Mar 1 01:05:20 MSK 2016


On Mon, Feb 29, 2016 at 8:15 AM, Abaci B <abaci64 at gmail.com> wrote:

> I don't see in your example above where you have a return "exit" in your
> hangup hook function
> see https://freeswitch.org/jira/browse/FS-3841
> seems like the "exit" or "die" needs to be returned directly from the
> hanguphook function so try from that function (not cleanup function) to
> return "exit" or "dye", also it seems
>
> On Mon, Feb 29, 2016 at 10:53 AM, Abaci B <abaci64 at gmail.com> wrote:
>
>> That's exactly what I noticed, it breaks out of the current function, why
>> not open a Jira? I don't think it's supposed to behave this way.
>>
>> On Mon, Feb 29, 2016 at 1:37 AM, Andrew Keil <andrew.keil at visytel.com>
>> wrote:
>>
>>> Thanks for your response.
>>>
>>>
>>>
>>> I have gone through these with no luck.   Like I said the
>>> session:destroy(“…”) crashes FreeSWITCH, which is therefore off the list.
>>> The rest simply interrupt the current function and do no end the script.
>>>
>>
I was not able to get session:destroy() to crash freeswitch using latest
1.7. However, it does not appear you need to explicitly destroy the
session. I suggest doing what Abaci recommends with the 'return "exit"' at
the end of myHangupHook right after the call to CleanUp().

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160229/b1b24fbf/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list