core: was an old prefix? I knew that change broke some ODBC DSNs (names without username+password, eg when they&#39;re specified in odbc.ini) but hadn&#39;t realised that had been broken too - that needs documenting as well on the Wiki I guess...<div>

<a href="http://wiki.freeswitch.org/wiki/Release_Notes#odbc-dsn">http://wiki.freeswitch.org/wiki/Release_Notes#odbc-dsn</a></div><div><div><br></div><div>Just a thought for the developers, but perhaps modules with odbc-dsn parameters should have this renamed to dsn or something now since it&#39;s not odbc-specific at all any longer. Easy enough to recognise both &#39;dsn&#39; and &#39;odbc-dsn&#39; names to remain backwards compatible (which I&#39;ve seen done with typos in config setting names in the past as precedent).</div>

<div><br></div><div>-Steve</div><div><br></div><div><br><br><div class="gmail_quote">On 5 February 2013 11:03, François Delawarde <span dir="ltr">&lt;<a href="mailto:fdelawarde@wirelessmundi.com" target="_blank">fdelawarde@wirelessmundi.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The behavior recently changed from &quot;core:&lt;path&gt;&quot; to &quot;sqlite://&lt;path&gt;&quot;.<br>
<br>
Update: I just tested and it seems that &quot;sqlite://&lt;path&gt;&quot; doesn&#39;t work,<br>
but as sqlite is the default, you can just omit the prefix and use<br>
&quot;&lt;path&gt;&quot; to make it work.<br>
<span class="HOEnZb"><font color="#888888"><br>
François.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, 2013-02-05 at 10:37 +0000, Steven Ayre wrote:<br>
&gt; &#39;Failure to connect to PGSQL core&#39; happens on ODBC connections, that<br>
&gt; seems to be a minor bug in the error message.<br>
&gt;<br>
&gt;<br>
&gt; From the unixODBC error it&#39;s interpreting this as a ODBC DSN. The<br>
&gt; reason is the sqlite prefix is sqlite:// not core://<br>
&gt; (see <a href="http://wiki.freeswitch.org/wiki/DSN" target="_blank">http://wiki.freeswitch.org/wiki/DSN</a>). You also don&#39;t have enough<br>
&gt; slashes.<br>
&gt;<br>
&gt;<br>
&gt; Try:<br>
&gt; local dbh = freeswitch.Dbh(&quot;sqlite:///usr/local/temp/database.db&quot;);<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; (note the 3 slashes - :// is standard URI format, the 3rd indicates an<br>
&gt; absolute path).<br>
&gt;<br>
&gt;<br>
&gt; -Steve<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 5 February 2013 08:56, Carlo Dimaggio &lt;<a href="mailto:jaasmailing@gmail.com">jaasmailing@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         Hi all!<br>
&gt;<br>
&gt;         I have a lua script in which i have a statement that connects<br>
&gt;         to a sqlite db:<br>
&gt;<br>
&gt;         local dbh =<br>
&gt;         freeswitch.Dbh(&quot;core:/usr/local/temp/database.db&quot;);<br>
&gt;<br>
&gt;         but i receve in FS CLI this error that refers to a Pgsql<br>
&gt;         instead of sqlite:<br>
&gt;<br>
&gt;         2013-02-05 09:40:10.379612 [ERR] switch_odbc.c:365 STATE:<br>
&gt;         IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name<br>
&gt;         not found, and no default driver specified<br>
&gt;         2013-02-05 09:40:10.379612 [CRIT] switch_core_sqldb.c:504<br>
&gt;         Failure to connect to PGSQL core!<br>
&gt;         2013-02-05 09:40:10.379612 [ERR] freeswitch_lua.cpp:354<br>
&gt;         Connection failed.  DBH NOT Connected.<br>
&gt;         2013-02-05 09:40:10.379612 [ERR] freeswitch_lua.cpp:435 DBH<br>
&gt;         NOT Connected.<br>
&gt;<br>
&gt;<br>
&gt;         Can you help me?<br>
&gt;<br>
&gt;         Best regards,<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;         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;         Official FreeSWITCH Sites<br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;         <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;         <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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;<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; 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; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
_________________________________________________________________________<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>
</div></div></blockquote></div><br></div></div>