Module: kamailio
Branch: master
Commit: 889431746d24c73eeff73705fab36a0e154116a9
URL:
https://github.com/kamailio/kamailio/commit/889431746d24c73eeff73705fab36a0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-20T08:02:37+01:00
misc/examples: note that sr is exported by app_lua_sr
- hint for lua syntax check
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff:
https://github.com/kamailio/kamailio/commit/889431746d24c73eeff73705fab36a0…
Patch:
https://github.com/kamailio/kamailio/commit/889431746d24c73eeff73705fab36a0…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index a896529965..fc31e1b93c 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -1,7 +1,7 @@
-- Kamailio - equivalent of routing blocks in Lua
--
--- KSR - the new dynamic object exporting Kamailio functions (kemi)
--- sr - the old static object exporting Kamailio functions
+-- KSR - the object exporting Kamailio KEMI functions (app_lua module)
+-- sr - the old object exporting Kamailio functions (app_lua_sr module)
--
-- Relevant remarks:
@@ -11,6 +11,9 @@
-- * KSR.drop() is only marking the SIP message for drop, but doesn't stop
-- the execution of the script. Use KSR.x.exit() after it or KSR.x.drop()
--
+-- Hints:
+-- * Lua syntax check: luac -p /path/to/script.lua
+--
-- debug callback function to print details of execution trace
--[[