Hello!
I'm planning to rewrite a native Kamailio script in KEMI Python, and I want
to understand the differences between app_python3 vs app_python3s in the
context of using sys.exit().
My native script uses the exit function in deep nested route[] blocks quite
a bit and would like to keep this logic in KEMI without using return codes
on top (return -255) towards ksr_request_route()
Using sys.exit() in app_python3s gives an error in syslog (although the
interpreter does not crash and everything works correctly), in app_python3
no such error
ERROR: app_python3s [apy3s_kemi.c:146]: apy3s_exec_func(): error exception
occurred
How safe is it to use sys.exit() in this case?
--
BR,
Denys Pozniak
Show replies by date