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