Daniel, first check and fix sys.exit) -> sys.exit() and sys,exit() -> sys.exit()
Replace sys.exit() with `return` to avoid abruptly stopping the Kamailio process.
try it:
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
regards!