Browse Source

kamailio-kemi-framework: use KSR.x.exit() in example for functions returning 0

Daniel-Constantin Mierla 6 years ago
parent
commit
97361b5e52
1 changed files with 3 additions and 1 deletions
  1. 3 1
      kamailio-kemi-framework/docs/kemi.md

+ 3 - 1
kamailio-kemi-framework/docs/kemi.md

@@ -515,7 +515,9 @@ Example handling `t_check_trans()` for 0 return code in Lua script:
 -- equivalent of request_route{}
 -- equivalent of request_route{}
 function ksr_request_route()
 function ksr_request_route()
     ...
     ...
-    if KSR.tm.t_check_trans()==0 then return 1 end
+    if KSR.tm.t_check_trans()==0 then
+        KSR.x.exit();
+    end
     ...
     ...
 end
 end
 ...
 ...