<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"><<a href="mailto:dragic.dusan@gmail.com" target="_blank">dragic.dusan@gmail.com</a>></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 <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br>
> maybe early this year, you can check the git commit history to confirm.<br>
> Also, there’s lua 5.1 mod_lua in legacy dir in the source tree.<br>
><br>
> --<br>
> Seven Du<br>
> <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>
> <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
> <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
><br>
> Sent with Sparrow<br>
><br>
> On Tuesday, October 7, 2014 at 8:08 PM, Борисов, Дмитрий wrote:<br>
><br>
> I have a myself writed script, it must read data from database and create<br>
> XML config for FS. For creating XML I using genx library, it was installed<br>
> by luarocks. This library worked fine when I use it in standalone scripts,<br>
> but when I use it in FS I`ve got next error (I`ve put there bigger part of<br>
> freeswitch.log for better explanation):<br>
><br>
> 2014-10-07 15:34:02.010800 [INFO] switch_cpp.cpp:1328 package.path<br>
> /usr/local/share/freeswitch/scripts/lua/?.lua package.cpath<br>
> /usr/local/lib/lua/5.1/?.so;/usr/local/lib/?.so<br>
> 2014-10-07 15:34:02.010848 [NOTICE] switch_cpp.cpp:1328 Debug from<br>
> gen_dir_user_xml.lua, provided params:<br>
> 'Event-Name: GENERAL<br>
> Core-UUID: ed5920d2-154e-e411-b150-005056a83c1f<br>
> FreeSWITCH-Hostname: voip-bsd-01.local<br>
> FreeSWITCH-Switchname: voip-bsd-01.local<br>
> FreeSWITCH-IPv4: xxx.xxx.xxx.xxx<br>
> FreeSWITCH-IPv6: %3A%3A1<br>
> Event-Date-Local: 2014-10-07%2015%3A34%3A02<br>
> Event-Date-GMT: Tue,%2007%20Oct%202014%2011%3A34%3A02%20GMT<br>
> Event-Date-Timestamp: 1412681642009651<br>
> Event-Calling-File: switch_core.c<br>
> Event-Calling-Function: switch_load_network_lists<br>
> Event-Calling-Line-Number: 1393<br>
> Event-Sequence: 397<br>
> domain: <a href="http://company1.xxxx.com" target="_blank">company1.xxxx.com</a><br>
> purpose: network-list<br>
><br>
> '<br>
> 2014-10-07 15:34:02.010858 [NOTICE] switch_cpp.cpp:1328 Debug from<br>
> gen_dir_user_xml.lua:<br>
> XML_REQUEST[section]:directory<br>
> XML_REQUEST["tag_name"]:domain<br>
> XML_REQUEST["key_name"]:name<br>
> XML_REQUEST["key_value"]:<a href="http://company1.xxxx.com" target="_blank">company1.xxxx.com</a><br>
> 2014-10-07 15:34:02.016535 [DEBUG] freeswitch_lua.cpp:360 DBH handle<br>
> 0x80c32d0f0 Connected.<br>
> 2014-10-07 15:34:02.016916 [ERR] mod_lua.cpp:203 error loading module 'genx'<br>
> from file '/usr/local/lib/lua/5.1/genx.so':<br>
> /usr/local/lib/lua/5.1/genx.so: Undefined symbol "lua_call"<br>
> stack traceback:<br>
> [C]: in ?<br>
> [C]: in function 'require'<br>
> .../local/share/freeswitch/scripts/lua/gen_dir_user_xml.lua:202: in<br>
> main chunk<br>
> 2014-10-07 15:34:02.016923 [ERR] mod_lua.cpp:269 LUA script parse/execute<br>
> error!<br>
><br>
> My lua.conf.xml:<br>
><br>
> <configuration name="lua.conf" description="LUA Configuration"><br>
> <settings><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>
> <param name="xml-handler-script" value="lua/gen_dir_user_xml.lua"/><br>
> <param name="xml-handler-bindings" value="directory"/><br>
> </settings><br>
> </configuration><br>
><br>
><br>
> I`d attached script because it is large.<br>
><br>
> Any thinks about methods for solving problem?<br>
><br>
> --<br>
> best regards,<br>
> Dmitriy Borisov<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><br>
><br>
> Attachments:<br>
> - gen_dir_user_xml.lua<br>
><br>
><br>
><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><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>