[OpenSIPS-Users] parameter <filename> not found in module <lua>

Vlad Paiu vladpaiu at opensips.org
Thu Jun 14 10:28:56 CEST 2012


Hello,

Indeed, there was a bug in the documentation.
Fix was committed in 1.8 and trunk.

Thanks and Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 06/13/2012 11:12 PM, Gledhill, James wrote:
>
> I read the source code and solved my own problem and am reporting back 
> for others, if/when needed.
>
> Additionally, it would be good for someone to change the code or the 
> documentation.
>
> modparam("lua", "*filename*", "/etc/opensips/opensips.lua") needs to 
> be ...
>
> modparam("lua", "*luafilename*", "/etc/opensips/opensips.lua") ...
>
> Changing the parameter from "filename" to "luafilename"
>
> Thanks
>
> ------------------------------------------------------------------------
>
> *From:*users-bounces at lists.opensips.org 
> [mailto:users-bounces at lists.opensips.org] *On Behalf Of *Gledhill, James
> *Sent:* Wednesday, June 13, 2012 1:57 PM
> *To:* users at lists.opensips.org
> *Subject:* [OpenSIPS-Users] parameter <filename> not found in module <lua>
>
> I am trying to test/work with the lua module, but having difficulties.
>
> When starting opensips I get the following error:
>
> <25>: /usr/local/opensips_proxy/sbin/opensips -f 
> /usr/local/opensips_proxy/etc/opensips/opensips_jbg_test.cfg
>
> Jun 13 14:40:37 [25953] ERROR:core:set_mod_param_regex: parameter 
> <filename> not found in module <lua>
>
> Jun 13 14:40:37 [25953] CRITICAL:core:yyerror: parse error in config 
> file /usr/local/opensips_proxy/etc/opensips/opensips_jbg_test.cfg, 
> line 90, column 20-21: Parameter <filename> not found in module <lua> 
> - can't set
>
> Jun 13 14:40:37 [25953] ERROR:core:main: bad config file (1 errors)
>
> ----
>
> /usr/local/opensips_proxy/etc/opensips/opensips_jbg_test.cfg has the 
> following:
>
> ...
>
> loadmodule "lua.so"
>
> modparam("lua", "filename", 
> "/usr/local/opensips_proxy/etc/opensips/test.lua")  ## Line 90
>
> ...
>
> -------
>
> The lua file exists and has a function in it:
>
> <26>: ls -la /usr/local/opensips_proxy/etc/opensips/test.lua
>
> -rw-r--r-- 1 root root 68 Jun 13 14:24 
> /usr/local/opensips_proxy/etc/opensips/test.lua
>
> <28>: cat /usr/local/opensips_proxy/etc/opensips/test.lua
>
> -- test lua
>
> function testFunction()
>
>         xlog("test from lua\n");
>
> end
>
> ------
>
> Environment:
>
>   CentOS release 5.8 (Final) -- 64-bit
>
>   opensips 1.8
>
>   Lua 5.1.4
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120614/5dd26459/attachment.htm>


More information about the Users mailing list