Module: kamailio
Branch: master
Commit: 9bce5f8479800a34818529442cc86958eece30c6
URL:
https://github.com/kamailio/kamailio/commit/9bce5f8479800a34818529442cc8695…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-25T17:08:02+02:00
examples/kemi: handle return code for lua within dialog function
---
Modified: examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff:
https://github.com/kamailio/kamailio/commit/9bce5f8479800a34818529442cc8695…
Patch:
https://github.com/kamailio/kamailio/commit/9bce5f8479800a34818529442cc8695…
---
diff --git a/examples/kemi/kamailio-basic-kemi-lua.lua
b/examples/kemi/kamailio-basic-kemi-lua.lua
index f3937a3..56f9e09 100644
--- a/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -32,7 +32,7 @@ function ksr_request_route()
end
-- handle requests within SIP dialogs
- ksr_route_withindlg();
+ if ksr_route_withindlg()==-255 then return 1; end
-- -- only initial requests (no To tag)