On Mon, Feb 29, 2016 at 8:15 AM, Abaci B <abaci64@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@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@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