<div dir="ltr">I found some intrsting thing, maybe bug. I instruct mod_lua to seek for scripts in<div>$${script_dir}/lua:</div><div><br></div><div><div><div># cat lua.conf.xml</div><div><configuration name="lua.conf" description="LUA Configuration"></div><div> <settings></div><div><br></div><div> <param name="module-directory" value="/usr/local/lib/lua/5.1/?.so"/><br></div><div> <param name="module-directory" value="/usr/local/lib/?.so"/></div><div> <param name="script-directory" value="$${script_dir}/lua/?.lua"/><br></div><div><br></div><div> <param name="xml-handler-script" value="gen_dir_user_xml.lua"/><br></div><div> <param name="xml-handler-bindings" value="directory"/></div><div><br></div><div> </settings><br></div><div></configuration></div></div><div><br></div><div>But in loading process i got next error message in logfile:</div><div><br></div><div><div><div>freeswitch.log:</div><div><div>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</div><div>2014-10-03 17:02:05.683599 [ERR] mod_lua.cpp:269 LUA script parse/execute error!</div><div>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</div><div>2014-10-03 17:02:05.683910 [ERR] mod_lua.cpp:269 LUA script parse/execute error!</div><div>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</div><div>2014-10-03 17:02:05.684196 [ERR] mod_lua.cpp:269 LUA script parse/execute error!</div></div></div><div><br></div><div>I put my lua scripts in right place (as described in config):</div><div># ls -la /usr/local/share/freeswitch/scripts/lua/gen_dir_user_xml.lua</div><div>-rw-r--r-- 1 root wheel 1708 3 окт 16:17 /usr/local/share/freeswitch/scripts/lua/gen_dir_user_xml.lua</div></div><div><br></div><div>But FS seek for it in $${script_dir} place, where no my script:</div><div># ls -la /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua</div><div><div>ls: /usr/local/share/freeswitch/scripts/gen_dir_user_xml.lua: No such file or directory</div></div><div><br></div><div><div>When my FF starts, it evals path from config right:</div></div><div><div>freeswitch@voip-bsd-01.local> eval $${script_dir}/lua/</div><div>/usr/local/share/freeswitch/scripts/lua/<br></div></div><div><br></div><div>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.</div><div><br></div><div>Any thinks about?</div><div><div><br></div>-- <br><div dir="ltr">Best regards,<div> Борисов Дмитрий</div></div>
</div></div></div>