Hello everyone!
I tried to use from Lua scripting language in kamailio configuration and rewrite all routes in Lua script. and I export many functions in ims_auth in KEMI and recompile ims_auth module. I have a problem with www_ims_challenge function calling in Lua script. when I define and call a function (REG_MAR_ROUTE) in www_ims_challenge as a route black, I get this error " empty action lists in route block" . why this happens and what's the solution ?
thanks in advance
I have never worked with KEMI, but I don’t think one can have an empty route block.
Take a look at the samples here https://github.com/kamailio/kamailio/blob/master/misc/examples/kemi/kamailio...
Hope that helps
David
On Sat, 1 Jun 2019 at 14:27, Maryam Baghdadi maryam.baghdadi@gmail.com wrote:
Hello everyone!
I tried to use from Lua scripting language in kamailio configuration and rewrite all routes in Lua script. and I export many functions in ims_auth in KEMI and recompile ims_auth module. I have a problem with www_ims_challenge function calling in Lua script. when I define and call a function (REG_MAR_ROUTE) in www_ims_challenge as a route black, I get this error " empty action lists in route block" . why this happens and what's the solution ?
thanks in advance
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
On 01.06.19 15:26, Maryam Baghdadi wrote:
Hello everyone!
I tried to use from Lua scripting language in kamailio configuration and rewrite all routes in Lua script. and I export many functions in ims_auth in KEMI and recompile ims_auth module. I have a problem with www_ims_challenge function calling in Lua script. when I define and call a function (REG_MAR_ROUTE) in www_ims_challenge as a route black, I get this error " empty action lists in route block" . why this happens and what's the solution ?
if the corresponding function has a parameter that specify a route block name, then you need to make the equivalent kemi function call another function you define in kemi script.
Eventually you can look at ki_async_route() implemented in the async module, which has something similar.
Cheers, Daniel