Просмотр исходного кода

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

Daniel-Constantin Mierla 6 лет назад
Родитель
Сommit
97361b5e52
1 измененных файлов с 3 добавлено и 1 удалено
  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{}
 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
 ...