[sr-dev] [kamailio/kamailio] app_jsdt: KSR.x.exit() not working as intended (#1936)

Daniel-Constantin Mierla notifications at github.com
Wed Apr 24 12:30:45 CEST 2019


The function KSR.x.exit() is stopping the JavaScript interpreter to execute further JavaScript code, not to stop the kamailio.cfg interpreter in such a mixed use case.

If you expected that nothing else is executed after jsdt_run() in kamailio.cfg, then it is not how KSR.x.exit() was designed. The solution is to set some variable in JS code and test it in kamailio.cfg routing block to do an exit.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1936#issuecomment-486167318
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190424/c66b5f91/attachment.html>


More information about the sr-dev mailing list