<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">FAIL =&gt; &quot;sqlite:///tmp/test.db&quot; (this one should work)</span></blockquote>

<div><br></div>What error does this give?</div><div><br></div><div><br><div class="gmail_quote">On 5 February 2013 16:31, 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">I&#39;m on HEAD, but I must be doing something wrong, there is no apparent<br>
reason from the code.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, 2013-02-05 at 16:05 +0000, Steven Ayre wrote:<br>
&gt; Honestly, I only use ODBC... Maybe someone else can shed some light?<br>
&gt;<br>
&gt; What version are you using?<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 5 Feb 2013, at 15:42, François Delawarde &lt;<a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Steven, does &quot;sqlite://&quot; prefix work for you? Not sure if it&#39;s a bug or<br>
&gt; &gt; I&#39;m doing something wrong. I tried the following from lua dbh:<br>
&gt; &gt;<br>
&gt; &gt; FAIL =&gt; &quot;sqlite:///tmp/test.db&quot; (this one should work)<br>
&gt; &gt; FAIL =&gt; &quot;sqlite://tmp/test.db&quot; (shouldn&#39;t work, but just in case...)<br>
&gt; &gt; OK   =&gt; &quot;/tmp/test.db&quot; (no prefix)<br>
&gt; &gt;<br>
&gt; &gt; François.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Tue, 2013-02-05 at 12:55 +0000, Steven Ayre wrote:<br>
&gt; &gt;&gt; core: was an old prefix? I knew that change broke some ODBC DSNs<br>
&gt; &gt;&gt; (names without username+password, eg when they&#39;re specified in<br>
&gt; &gt;&gt; odbc.ini) but hadn&#39;t realised that had been broken too - that needs<br>
&gt; &gt;&gt; documenting as well on the Wiki I guess...<br>
&gt; &gt;&gt; <a href="http://wiki.freeswitch.org/wiki/Release_Notes#odbc-dsn" target="_blank">http://wiki.freeswitch.org/wiki/Release_Notes#odbc-dsn</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Just a thought for the developers, but perhaps modules with odbc-dsn<br>
&gt; &gt;&gt; parameters should have this renamed to dsn or something now since it&#39;s<br>
&gt; &gt;&gt; not odbc-specific at all any longer. Easy enough to recognise both<br>
&gt; &gt;&gt; &#39;dsn&#39; and &#39;odbc-dsn&#39; names to remain backwards compatible (which I&#39;ve<br>
&gt; &gt;&gt; seen done with typos in config setting names in the past<br>
&gt; &gt;&gt; as precedent).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; -Steve<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On 5 February 2013 11:03, François Delawarde<br>
&gt; &gt;&gt; &lt;<a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a>&gt; wrote:<br>
&gt; &gt;&gt;        The behavior recently changed from &quot;core:&lt;path&gt;&quot; to<br>
&gt; &gt;&gt;        &quot;sqlite://&lt;path&gt;&quot;.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        Update: I just tested and it seems that &quot;sqlite://&lt;path&gt;&quot;<br>
&gt; &gt;&gt;        doesn&#39;t work,<br>
&gt; &gt;&gt;        but as sqlite is the default, you can just omit the prefix and<br>
&gt; &gt;&gt;        use<br>
&gt; &gt;&gt;        &quot;&lt;path&gt;&quot; to make it work.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        François.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        On Tue, 2013-02-05 at 10:37 +0000, Steven Ayre wrote:<br>
&gt; &gt;&gt;&gt; &#39;Failure to connect to PGSQL core&#39; happens on ODBC<br>
&gt; &gt;&gt;        connections, that<br>
&gt; &gt;&gt;&gt; seems to be a minor bug in the error message.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; From the unixODBC error it&#39;s interpreting this as a ODBC<br>
&gt; &gt;&gt;        DSN. The<br>
&gt; &gt;&gt;&gt; reason is the sqlite prefix is sqlite:// not core://<br>
&gt; &gt;&gt;&gt; (see <a href="http://wiki.freeswitch.org/wiki/DSN" target="_blank">http://wiki.freeswitch.org/wiki/DSN</a>). You also don&#39;t<br>
&gt; &gt;&gt;        have enough<br>
&gt; &gt;&gt;&gt; slashes.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Try:<br>
&gt; &gt;&gt;&gt; local dbh =<br>
&gt; &gt;&gt;        freeswitch.Dbh(&quot;sqlite:///usr/local/temp/database.db&quot;);<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; (note the 3 slashes - :// is standard URI format, the 3rd<br>
&gt; &gt;&gt;        indicates an<br>
&gt; &gt;&gt;&gt; absolute path).<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; -Steve<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; On 5 February 2013 08:56, Carlo Dimaggio<br>
&gt; &gt;&gt;        &lt;<a href="mailto:jaasmailing@gmail.com">jaasmailing@gmail.com</a>&gt;<br>
&gt; &gt;&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;        Hi all!<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        I have a lua script in which i have a statement that<br>
&gt; &gt;&gt;        connects<br>
&gt; &gt;&gt;&gt;        to a sqlite db:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        local dbh =<br>
&gt; &gt;&gt;&gt;        freeswitch.Dbh(&quot;core:/usr/local/temp/database.db&quot;);<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        but i receve in FS CLI this error that refers to a<br>
&gt; &gt;&gt;        Pgsql<br>
&gt; &gt;&gt;&gt;        instead of sqlite:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        2013-02-05 09:40:10.379612 [ERR] switch_odbc.c:365<br>
&gt; &gt;&gt;        STATE:<br>
&gt; &gt;&gt;&gt;        IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data<br>
&gt; &gt;&gt;        source name<br>
&gt; &gt;&gt;&gt;        not found, and no default driver specified<br>
&gt; &gt;&gt;&gt;        2013-02-05 09:40:10.379612 [CRIT]<br>
&gt; &gt;&gt;        switch_core_sqldb.c:504<br>
&gt; &gt;&gt;&gt;        Failure to connect to PGSQL core!<br>
&gt; &gt;&gt;&gt;        2013-02-05 09:40:10.379612 [ERR]<br>
&gt; &gt;&gt;        freeswitch_lua.cpp:354<br>
&gt; &gt;&gt;&gt;        Connection failed.  DBH NOT Connected.<br>
&gt; &gt;&gt;&gt;        2013-02-05 09:40:10.379612 [ERR]<br>
&gt; &gt;&gt;        freeswitch_lua.cpp:435 DBH<br>
&gt; &gt;&gt;&gt;        NOT Connected.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        Can you help me?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        Best regards,<br>
&gt; &gt;&gt;        _________________________________________________________________________<br>
&gt; &gt;&gt;&gt;        Professional FreeSWITCH Consulting Services:<br>
&gt; &gt;&gt;&gt;        <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; &gt;&gt;&gt;        <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        FreeSWITCH-powered IP PBX: The CudaTel Communication<br>
&gt; &gt;&gt;        Server<br>
&gt; &gt;&gt;&gt;        <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        Official FreeSWITCH Sites<br>
&gt; &gt;&gt;&gt;        <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt;&gt;        <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; &gt;&gt;&gt;        <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;        FreeSWITCH-users mailing list<br>
&gt; &gt;&gt;&gt;        <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt;&gt;        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt;&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; &gt;&gt;&gt;        <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt;        _________________________________________________________________________<br>
&gt; &gt;&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; &gt;&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; &gt;&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; &gt;&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Official FreeSWITCH Sites<br>
&gt; &gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; &gt;&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt; &gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt;&gt;        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt;&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; &gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        _________________________________________________________________________<br>
&gt; &gt;&gt;        Professional FreeSWITCH Consulting Services:<br>
&gt; &gt;&gt;        <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; &gt;&gt;        <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; &gt;&gt;        <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        Official FreeSWITCH Sites<br>
&gt; &gt;&gt;        <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt;        <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; &gt;&gt;        <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        FreeSWITCH-users mailing list<br>
&gt; &gt;&gt;        <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt;&gt;        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt;&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; &gt;&gt;        <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _________________________________________________________________________<br>
&gt; &gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; &gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; &gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; &gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Official FreeSWITCH Sites<br>
&gt; &gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; &gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; FreeSWITCH-users mailing list<br>
&gt; &gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt;&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; &gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _________________________________________________________________________<br>
&gt; &gt; Professional FreeSWITCH Consulting Services:<br>
&gt; &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; &gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt; &gt;<br>
&gt; &gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; &gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt; &gt;<br>
&gt; &gt; Official FreeSWITCH Sites<br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; &gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt; &gt;<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &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; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><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>