<div dir="ltr">Thanks for answers, you help me to found src/mod/legacy/languages/mod_lua. It is solve my problems</div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-08 12:08 GMT+04:00 Dušan Dragić <span dir="ltr">&lt;<a href="mailto:dragic.dusan@gmail.com" target="_blank">dragic.dusan@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">probably a bit earlier, late last year. it was already in the 1.4<br>
release if I remember right.<br>
<div class="HOEnZb"><div class="h5"><br>
On 8 October 2014 04:09, Seven Du &lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt; wrote:<br>
&gt; maybe early this year, you can check the git commit history to confirm.<br>
&gt; Also, there’s lua 5.1 mod_lua in legacy dir in the source tree.<br>
&gt;<br>
&gt; --<br>
&gt; Seven Du<br>
&gt; <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>
&gt; <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
&gt; <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
&gt;<br>
&gt; Sent with Sparrow<br>
&gt;<br>
&gt; On Tuesday, October 7, 2014 at 8:08 PM, Борисов, Дмитрий wrote:<br>
&gt;<br>
&gt; I have a myself writed script, it must read data from database and create<br>
&gt; XML config for FS. For creating XML I using genx library, it was installed<br>
&gt; by luarocks. This library worked fine when I use it in standalone scripts,<br>
&gt; but when I use it in FS I`ve got next error (I`ve put there bigger part of<br>
&gt; freeswitch.log for better explanation):<br>
&gt;<br>
&gt; 2014-10-07 15:34:02.010800 [INFO] switch_cpp.cpp:1328 package.path<br>
&gt; /usr/local/share/freeswitch/scripts/lua/?.lua package.cpath<br>
&gt; /usr/local/lib/lua/5.1/?.so;/usr/local/lib/?.so<br>
&gt; 2014-10-07 15:34:02.010848 [NOTICE] switch_cpp.cpp:1328 Debug from<br>
&gt; gen_dir_user_xml.lua, provided params:<br>
&gt; &#39;Event-Name: GENERAL<br>
&gt; Core-UUID: ed5920d2-154e-e411-b150-005056a83c1f<br>
&gt; FreeSWITCH-Hostname: voip-bsd-01.local<br>
&gt; FreeSWITCH-Switchname: voip-bsd-01.local<br>
&gt; FreeSWITCH-IPv4: xxx.xxx.xxx.xxx<br>
&gt; FreeSWITCH-IPv6: %3A%3A1<br>
&gt; Event-Date-Local: 2014-10-07%2015%3A34%3A02<br>
&gt; Event-Date-GMT: Tue,%2007%20Oct%202014%2011%3A34%3A02%20GMT<br>
&gt; Event-Date-Timestamp: 1412681642009651<br>
&gt; Event-Calling-File: switch_core.c<br>
&gt; Event-Calling-Function: switch_load_network_lists<br>
&gt; Event-Calling-Line-Number: 1393<br>
&gt; Event-Sequence: 397<br>
&gt; domain: <a href="http://company1.xxxx.com" target="_blank">company1.xxxx.com</a><br>
&gt; purpose: network-list<br>
&gt;<br>
&gt; &#39;<br>
&gt; 2014-10-07 15:34:02.010858 [NOTICE] switch_cpp.cpp:1328 Debug from<br>
&gt; gen_dir_user_xml.lua:<br>
&gt; XML_REQUEST[section]:directory<br>
&gt; XML_REQUEST[&quot;tag_name&quot;]:domain<br>
&gt; XML_REQUEST[&quot;key_name&quot;]:name<br>
&gt; XML_REQUEST[&quot;key_value&quot;]:<a href="http://company1.xxxx.com" target="_blank">company1.xxxx.com</a><br>
&gt; 2014-10-07 15:34:02.016535 [DEBUG] freeswitch_lua.cpp:360 DBH handle<br>
&gt; 0x80c32d0f0 Connected.<br>
&gt; 2014-10-07 15:34:02.016916 [ERR] mod_lua.cpp:203 error loading module &#39;genx&#39;<br>
&gt; from file &#39;/usr/local/lib/lua/5.1/genx.so&#39;:<br>
&gt;         /usr/local/lib/lua/5.1/genx.so: Undefined symbol &quot;lua_call&quot;<br>
&gt; stack traceback:<br>
&gt;         [C]: in ?<br>
&gt;         [C]: in function &#39;require&#39;<br>
&gt;         .../local/share/freeswitch/scripts/lua/gen_dir_user_xml.lua:202: in<br>
&gt; main chunk<br>
&gt; 2014-10-07 15:34:02.016923 [ERR] mod_lua.cpp:269 LUA script parse/execute<br>
&gt; error!<br>
&gt;<br>
&gt; My lua.conf.xml:<br>
&gt;<br>
&gt; &lt;configuration name=&quot;lua.conf&quot; description=&quot;LUA Configuration&quot;&gt;<br>
&gt;   &lt;settings&gt;<br>
&gt;     &lt;param name=&quot;module-directory&quot; value=&quot;/usr/local/lib/lua/5.1/?.so&quot;/&gt;<br>
&gt;     &lt;param name=&quot;module-directory&quot; value=&quot;/usr/local/lib/?.so&quot;/&gt;<br>
&gt;     &lt;param name=&quot;script-directory&quot; value=&quot;$${script_dir}/lua/?.lua&quot;/&gt;<br>
&gt;     &lt;param name=&quot;xml-handler-script&quot; value=&quot;lua/gen_dir_user_xml.lua&quot;/&gt;<br>
&gt;     &lt;param name=&quot;xml-handler-bindings&quot; value=&quot;directory&quot;/&gt;<br>
&gt;   &lt;/settings&gt;<br>
&gt; &lt;/configuration&gt;<br>
&gt;<br>
&gt;<br>
&gt; I`d attached script because it is large.<br>
&gt;<br>
&gt; Any thinks about methods for solving problem?<br>
&gt;<br>
&gt; --<br>
&gt; best regards,<br>
&gt; Dmitriy Borisov<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; Attachments:<br>
&gt; - gen_dir_user_xml.lua<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Dušan Dragić<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_________________________________________________________________________<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></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">С уважением,<div>    Борисов Дмитрий</div></div>
</div>