<div dir="ltr">Because it is default from lua.conf.xml vanila example. But without ?.lua and without /?.lua I gave the same result</div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-03 19:18 GMT+04:00 Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">why do you have ?.lua at the end? what happens if you don't include that?<br>
<div><div class="h5"><br>
On Oct 3, 2014, at 9:20 AM, Борисов, Дмитрий <<a href="mailto:bordmi@rarus.ru">bordmi@rarus.ru</a>> wrote:<br>
<br>
> I found some intrsting thing, maybe bug. I instruct mod_lua to seek for scripts in<br>
> $${script_dir}/lua:<br>
><br>
> # cat lua.conf.xml<br>
> <configuration name="lua.conf" description="LUA Configuration"><br>
> <settings><br>
><br>
> <param name="module-directory" value="/usr/local/lib/lua/5.1/?.so"/><br>
> <param name="module-directory" value="/usr/local/lib/?.so"/><br>
> <param name="script-directory" value="$${script_dir}/lua/?.lua"/><br>
><br>
> <param name="xml-handler-script" value="gen_dir_user_xml.lua"/><br>
> <param name="xml-handler-bindings" value="directory"/><br>
><br>
> </settings><br>
> </configuration><br>
><br>
> But in loading process i got next error message in logfile:<br>
><br>
> freeswitch.log:<br>
> 2014-10-03 17:02:05.683593 [ERR] mod_lua.cpp:203 cannot open /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua: No such file or directory<br>
> 2014-10-03 17:02:05.683599 [ERR] mod_lua.cpp:269 LUA script parse/execute error!<br>
> 2014-10-03 17:02:05.683901 [ERR] mod_lua.cpp:203 cannot open /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua: No such file or directory<br>
> 2014-10-03 17:02:05.683910 [ERR] mod_lua.cpp:269 LUA script parse/execute error!<br>
> 2014-10-03 17:02:05.684191 [ERR] mod_lua.cpp:203 cannot open /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua: No such file or directory<br>
> 2014-10-03 17:02:05.684196 [ERR] mod_lua.cpp:269 LUA script parse/execute error!<br>
><br>
> I put my lua scripts in right place (as described in config):<br>
> # ls -la /usr/local/share/freeswitch/scripts/lua/gen_dir_user_xml.lua<br>
> -rw-r--r-- 1 root wheel 1708 3 окт 16:17 /usr/local/share/freeswitch/scripts/lua/gen_dir_user_xml.lua<br>
><br>
> But FS seek for it in $${script_dir} place, where no my script:<br>
> # ls -la /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua<br>
> ls: /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua: No such file or directory<br>
><br>
> When my FF starts, it evals path from config right:<br>
> freeswitch@voip-bsd-01.local> eval $${script_dir}/lua/<br>
> /usr/local/share/freeswitch/scripts/lua/<br>
><br>
> I can solve this problem simply by putting script to $${script_dir} (I tried, it works), but after that i loose possibility to sort my scripts.<br>
><br>
> Any thinks about?<br>
><br>
> --<br>
> Best regards,<br>
> Борисов Дмитрий<br>
<br>
</div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">С уважением,<div> Борисов Дмитрий</div></div>
</div>