<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Fixed a bunch of these on this page and a related page paralell to this one too... Thanks<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 26, 2016, at 12:40 PM, Artur Mega <<a href="mailto:findmeinwland@gmail.com" class="">findmeinwland@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Thank you! Now it works! I copy/pasted from examples in documentation at <a href="https://freeswitch.org/confluence/display/FREESWITCH/Lua+FreeSWITCH+dbh" class="">https://freeswitch.org/confluence/display/FREESWITCH/Lua+FreeSWITCH+dbh</a></div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">You see, there freeswitch.dbh with small d. Bug in docs) need to correct.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-01-26 16:10 GMT+05:00 Marcel Haldemann <span dir="ltr" class=""><<a href="mailto:marcel.haldemann@convercom.ch" target="_blank" class="">marcel.haldemann@convercom.ch</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE-CH" link="#0563C1" vlink="#954F72" class="">
<div class=""><p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">Works for me in 1.4-1.7:<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">local dbh = freeswitch.Dbh("<a href="odbc://dbname:user:password" class="">odbc://dbname:user:password</a>") -- connect to ODBC database<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">maybe the big D in Dbh ?<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><b class=""><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="">Von:</span></b><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif" class=""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" class="">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" class="">freeswitch-users-bounces@lists.freeswitch.org</a>]
<b class="">Im Auftrag von </b>Artur Mega<br class="">
<b class="">Gesendet:</b> Dienstag, 26. Januar 2016 09:04<br class="">
<b class="">An:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" class="">freeswitch-users@lists.freeswitch.org</a>><br class="">
<b class="">Betreff:</b> [Freeswitch-users] Lua FreeSWITCH 1.6 dbh and PostgreSQL<u class=""></u><u class=""></u></span></p><div class=""><div class="h5"><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
<div class="">
<div class=""><p class="MsoNormal" style="margin-bottom:12.0pt">Hello everybody,<br class="">
How can i connect to postgres database from lua through freeswitch.dbh ? <u class=""></u><u class=""></u></p>
<div class=""><p class="MsoNormal">I tried<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal">local dbh = freeswitch.dbh("<a href="pgsql://hostaddr=127.0.0.1" class="">pgsql://hostaddr=127.0.0.1</a> dbname=some_db user=uname password='passwd'") -- returns nil<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal">local dbh = freeswitch.dbh("<a href="odbc://some_db:uname:passwd" class="">odbc://some_db:uname:passwd</a>") -- returns nil too<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
<div class=""><p class="MsoNormal">Also I set up ODBS with PostgreSQL driver. If I run this command in console:<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"> isql some_db uname passwd<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
<div class=""><p class="MsoNormal">then I can successfully connect to my database. What am i doing wrong? Also I tried to link odbc*.ini files for freeswitch:<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"> mkdir /usr/local/freeswitch/etc<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"> ln -s /etc/odbcinst.ini /usr/local/freeswitch/etc/odbcinst.ini<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"> ln -s /etc/odbc.ini /usr/local/freeswitch/etc/odbc.ini<u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
<div class=""><p class="MsoNormal">but it doesn't help too. Thanks in advance.<u class=""></u><u class=""></u></p>
</div>
</div>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div><p class="MsoNormal">-- <u class=""></u><u class=""></u></p>
<div class="">
<div class="">
<div class="">
<div class=""><p class="MsoNormal"><br class="">
Arthur<u class=""></u><u class=""></u></p>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
<br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div class=""><br class="">Arthur</div></div></div></div>
</div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>