Module: kamailio Branch: master Commit: 9bce5f8479800a34818529442cc86958eece30c6 URL: https://github.com/kamailio/kamailio/commit/9bce5f8479800a34818529442cc86958eece30c6
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> 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/9bce5f8479800a34818529442cc86958eece30c6.diff Patch: https://github.com/kamailio/kamailio/commit/9bce5f8479800a34818529442cc86958eece30c6.patch --- 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) _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
