Hi Hugh,
some of the modules that you try to register to Lua are not available on
3.1.x. The tutorial at:
is based on devel version (master branch), that is going to become 3.2.0
in the autumn.
Cheers,
Daniel
On 7/12/11 5:48 PM, Hugh Waite wrote:
Hello,
I am trying to use the LUA module and am getting the same 'parse
error' described in this thread.
I am using v3.1.4 on CentOS 5.6 and I have copied the modparam()
example from the lua-routing tutorial
http://kb.asipto.com/kamailio:usage:k32-lua-routing
loadmodule "app_lua.so"
modparam("app_lua", "load", "/etc/kamailio/simple.lua")
modparam("app_lua", "register", "sl")
modparam("app_lua", "register", "rr")
modparam("app_lua", "register", "tm")
modparam("app_lua", "register", "maxfwd")
modparam("app_lua", "register", "registrar")
modparam("app_lua", "register", "auth")
modparam("app_lua", "register", "auth_db")
$ /usr/sbin/kamailio -c /etc/kamailio/kamailio.cfg
Not starting : invalid configuration file!
0(2851) WARNING: <core> [sr_module.c:578]:
/usr/lib64/kamailio/modules/app_lua.so: exports dlflags interface is
deprecated and it will not be supported in newer versions; consider
using mod_register() instead
0(2851) : <core> [cfg.y:3412]: parse error in config file
//etc/kamailio/kamailio.cfg, line 370, column 37: Can't set module
parameter
0(2851) : <core> [cfg.y:3412]: parse error in config file
//etc/kamailio/kamailio.cfg, line 371, column 37: Can't set module
parameter
0(2851) : <core> [cfg.y:3412]: parse error in config file
//etc/kamailio/kamailio.cfg, line 372, column 41: Can't set module
parameter
0(2851) : <core> [cfg.y:3412]: parse error in config file
//etc/kamailio/kamailio.cfg, line 373, column 44: Can't set module
parameter
0(2851) : <core> [cfg.y:3412]: parse error in config file
//etc/kamailio/kamailio.cfg, line 374, column 39: Can't set module
parameter
0(2851) : <core> [cfg.y:3412]: parse error in config file
//etc/kamailio/kamailio.cfg, line 375, column 42: Can't set module
parameter
ERROR: bad config file (6 errors)
Note that the first line ("register", "sl") does not have a problem,
only the next 6.
Was the cause of this issue found and resolved?
Regards,
Hugh
On 25/05/2011 10:59, Henning Westerholt wrote:
On Wednesday 25 May 2011, Bret McDanel wrote:
In 3.1.1 this worked just fine. In 3.1.3 it is
giving me an error. I
am unsure what to check at this point for why it would be failing.
I am
doing a kamailio -c to validate the config and not actually launching
the program but I do not think that should cause this.
modparam("app_lua", "register", "sqlops")
sqlops.so is loaded.
if I remove that modparam line the config validates, however the lua
script would fail because it uses sqlops.
modules.lst is the same for building.
While I do not think that it is lua specific, both are using
liblua5.1.0, one is Ubuntu 11.04 natty (where it fails) and the
other is
Debian wheezy (where its working).
Hi Bret,
this is a really strange behaviour. You probably already checked
this, but the
two server configurations on the respective machines are otherwise
identically
as well? Do you register also other modules (like sr, auth..) to lua,
does
they fail with the same error as well?
0(18226) WARNING:<core>
[sr_module.c:578]:
/usr/local/kamailio/lib64/kamailio/modules/app_lua.so:
exports dlflags interface is deprecated and it will notbe supported in
newer versions; consider using mod_register() instead
0(18226) :<core> [cfg.y:3412]: parse error in config file
kamailio.cfg,
line 262, column 41: Can't set module parameter
As a side note the "notbe supported ..." line is missing a space
between
not and be and a newline at the end.
Thanks, i've fixed this in master and 3.1
branch.
Regards,
Henning
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users