Hello,
in Python you can call exit() or os.exit(), this throws an exception which is caught by Kamailio and interpreted as the usual exit from kamailio.cfg.
Probably we should add the KSR.x.exit() there as well, it was not added because python exit gave what was needed in this case
Cheers, Daniel
On 27.03.18 16:49, Enrico Bandiera wrote:
Hello, I'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime i get this error:
KSR.x.exit() AttributeError: 'module' object has no attribute 'exit'
It seems that the exit function is missing even though it is documented.
My kamailio version is: kamailio 5.2.0-dev4 (x86_64/linux) (it's a nightly)
Any idea on what I can do?
Thanks, Enrico.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users