From 7577f72bf9ee94f95f8b85f63f527026baec391a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=B6ttner?= Date: Thu, 27 Sep 2018 17:21:21 +0200 Subject: [PATCH] replace kamailio functions with library functions --- src/kamailio/actions.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kamailio/actions.lua b/src/kamailio/actions.lua index 3b02174..fe4bff9 100644 --- a/src/kamailio/actions.lua +++ b/src/kamailio/actions.lua @@ -59,9 +59,9 @@ function actions.relay_message() end if KSR.tm.t_relay()<0 then - KSR.sl.sl_reply_error(); + reply.with_stateless_error_and_exit() end - KSR.x.exit(); + core.exit(); end function actions.route_to_location() @@ -79,10 +79,10 @@ function actions.route_to_location() if message.is_invite() then core.set_flag(FLT_ACCMISSED) end - + actions.relay_message() core.exit() end -return actions \ No newline at end of file +return actions