<div dir="ltr">Use <a href="https://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh">https://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh</a> not luasql</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 August 2014 13:19, Joel White <span dir="ltr">&lt;<a href="mailto:joelewhite@gmail.com" target="_blank">joelewhite@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have (or so I thought) installed all dependencies for Lua to connect to a postgres db in freeswitch.<div>

<br></div><div>When I run the Lua script though I get this message</div><div><br></div><div><br></div>
<div>2014-08-14 08:16:20.832901 [ERR] mod_lua.cpp:203 /usr/local/freeswitch/scripts/db_connect.lua:12: module &#39;luasql.postgres&#39; not found:</div><div>        no field package.preload[&#39;luasql.postgres&#39;]</div>


<div>        no file &#39;./luasql/postgres.lua&#39;</div><div>        no file &#39;/usr/local/share/lua/5.1/luasql/postgres.lua&#39;</div><div>        no file &#39;/usr/local/share/lua/5.1/luasql/postgres/init.lua&#39;</div>


<div>        no file &#39;/usr/local/lib/lua/5.1/luasql/postgres.lua&#39;</div><div>        no file &#39;/usr/local/lib/lua/5.1/luasql/postgres/init.lua&#39;</div><div>        no file &#39;./luasql/postgres.so&#39;</div>

<div>
        no file &#39;./libluasql/postgres51.so&#39;</div><div>        no file &#39;/usr/local/lib/lua/5.1/luasql/postgres.so&#39;</div><div>        no file &#39;/usr/local/lib/lua/5.1/libluasql/postgres51.so&#39;</div><div>


        no file &#39;/usr/local/lib/lua/5.1/loadall.so&#39;</div><div>        no file &#39;./luasql.so&#39;</div><div>        no file &#39;./libluasql51.so&#39;</div><div>        no file &#39;/usr/local/lib/lua/5.1/luasql.so&#39;</div>


<div>        no file &#39;/usr/local/lib/lua/5.1/libluasql51.so&#39;</div><div>        no file &#39;/usr/local/lib/lua/5.1/loadall.so&#39;</div><div><br></div><div><br></div><div>I do have lua-sql-postgres installed on Debian 7 as well as libpq-dev and all other mentioned packages</div>


<div><br></div><div><br></div><div>How do I correct the issue of FreeSWITCH not seeing lua-sql-postgres?</div><div><br></div><div><br></div></div>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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></blockquote></div><br></div>