I was able to resolve the remaining errors by removing sys.exit() and replacing with return / return 1.
Any thoughts on what these debug lines are referring to? (what is route type and should name have a value?)
DEBUG: app_python3s [apy3s_kemi.c:227]: sr_kemi_config_engine_python(): execution of route type 513 with name [] returned -1 DEBUG: app_python3s [apy3s_kemi.c:230]: sr_kemi_config_engine_python(): execution of route type 1 with no name returned 1 - dan ________________________________ From: Ricardo Castillo via sr-users sr-users@lists.kamailio.org Sent: Wednesday, November 13, 2024 07:16 To: sr-users@lists.kamailio.org sr-users@lists.kamailio.org Cc: Ricardo Castillo pkecastillo@gmail.com Subject: [SR-Users] Re: KEMI / Python Issues
Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe
It might be necessary to return 1
using the same example:
if not ksr.siputils.has_totag(): ksr.info("has to tag") return
if ksr.is_method("ACK"): if ksr.tm.t_check_trans(): ksr.relay() return else: return ksr.sl.send_reply(404, "Not here") return 1 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: