<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Ballontekst Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.E-mailStijl17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BallontekstChar
        {mso-style-name:"Ballontekst Char";
        mso-style-priority:99;
        mso-style-link:Ballontekst;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:NL;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steve,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thnx for this explanation! Now it&#8217;s clear to me.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Still having the connection failure. Any idea&#8217;s how to fix it? The errorcodes doesn&#8217;t provide detailed information of the problem and how to fix it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thnx<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Erik<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Van:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>N</b></span><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>amens </span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Steven Ayre<br><b>Verzonden:</b> maandag 21 februari 2011 9:37<br><b>Aan:</b> FreeSWITCH Users Help<br><b>Onderwerp:</b> Re: [Freeswitch-users] ODBC error STATE: HY000 CODE 21 ERROR<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>While ODBC isn't required for the core for a few modules such as mod_sofia, most modules that use a database do need ODBC - mod_cidlookup is one of them.<br><br>-Steve<br><br><o:p></o:p></p><div><p class=MsoNormal>On 21 February 2011 08:18, Erik Dekkers &lt;<a href="mailto:erik.dekkers@wvds.nl">erik.dekkers@wvds.nl</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Thnx for the answer,<br><br>Mod_cidlookup requires that you set a DSN so it knows where to get the data right? How would I connect mod_cidlookup to a db without setting a DSN?<br><br>Regards<br><br>Erik<br><br>-----Oorspronkelijk bericht-----<br>Van: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] Namens Steven Ayre<br>Verzonden: maandag 21 februari 2011 1:04<br>Aan: FreeSWITCH Users Help<br>Onderwerp: Re: [Freeswitch-users] ODBC error STATE: HY000 CODE 21 ERROR<o:p></o:p></p><div><div><p class=MsoNormal><br>Correct. Sqlite doesn't use odbc, you only need unixodbc if you want to connect via odbc to mysql, mssql, postgresql etc.<br><br>Steve on iPhone<br><br>On 20 Feb 2011, at 21:34, curriegrad2004 &lt;<a href="mailto:curriegrad2004@gmail.com">curriegrad2004@gmail.com</a>&gt; wrote:<br><br>&gt; sqlite should be built in freeswitch without needing unixODBC. There's<br>&gt; no need to use unixODBC unless you're trying to use MySQL or MSSQL<br>&gt; with FreeSwitch, iirc.<br>&gt;<br>&gt; On Sun, Feb 20, 2011 at 10:41 AM, Erik Dekkers &lt;<a href="mailto:erik.dekkers@wvds.nl">erik.dekkers@wvds.nl</a>&gt; wrote:<br>&gt;&gt; Hi guys,<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; At the moment I'm doing some testing with mod_cidlookup. My intention<br>&gt;&gt; is to match the incoming numbers against a local database. Right now<br>&gt;&gt; im trying to set it up with SQLite.<br>&gt;&gt;<br>&gt;&gt; I've installed SQLite, unixODBC and created a DSN (freeswitch is also<br>&gt;&gt; compiled with odbc support). When testing the connection to the<br>&gt;&gt; SQLite database with the isql utility everything works:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; +---------------------------------------+<br>&gt;&gt; | Connected! &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&gt;&gt; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>&gt;&gt; | sql-statement &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>&gt;&gt; | help [tablename] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&gt;&gt; | quit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&gt;&gt; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>&gt;&gt; +---------------------------------------+<br>&gt;&gt; SQL&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Unfortunately when starting freeswitch I get this error in the console:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; 2011-02-20 19:28:44.203665 [ERR] switch_odbc.c:365 STATE: HY000 CODE<br>&gt;&gt; 21<br>&gt;&gt; ERROR: [unixODBC][SQLite]connect failed<br>&gt;&gt;<br>&gt;&gt; 2011-02-20 19:28:44.203672 [CRIT] switch_core_sqldb.c:386 Failure!<br>&gt;&gt; 2011-02-20 19:28:44.203677 [CRIT] mod_cidlookup.c:137 Cannot Open<br>&gt;&gt; ODBC Database!<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Here's my config from /conf/autoload_configs/cidlookup.conf.xml:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; &lt;configuration name=&quot;cidlookup.conf&quot; description=&quot;cidlookup Configuration&quot;&gt;<br>&gt;&gt; &nbsp; &lt;settings&gt;<br>&gt;&gt; &nbsp; &nbsp; &lt;param name=&quot;cache&quot; value=&quot;false&quot;/&gt;<br>&gt;&gt; &nbsp; &nbsp; &lt;!-- expire is in seconds --&gt;<br>&gt;&gt; &nbsp; &nbsp; &lt;param name=&quot;cache-expire&quot; value=&quot;86400&quot;/&gt;<br>&gt;&gt; &nbsp; &nbsp; &lt;param name=&quot;odbc-dsn&quot; value=&quot;mysqlitedb&quot;/&gt;<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &lt;!-- comment out sql to not setup a database (directory) lookup --&gt;<br>&gt;&gt; &nbsp; &nbsp; &lt;param name=&quot;sql&quot; value=&quot;<br>&gt;&gt; &nbsp; &nbsp; &nbsp;SELECT name||' ('||type||')' AS name<br>&gt;&gt; &nbsp; &nbsp; &nbsp; FROM phonebook p JOIN numbers n ON <a href="http://p.id" target="_blank">p.id</a> = n.phonebook_id<br>&gt;&gt; &nbsp; &nbsp; &nbsp; WHERE n.number='${caller_id_number}'<br>&gt;&gt; &nbsp; &nbsp; &nbsp; LIMIT 1<br>&gt;&gt; &nbsp; &nbsp; &nbsp; &quot;/&gt;<br>&gt;&gt; &nbsp; &lt;/settings&gt;<br>&gt;&gt; &lt;/configuration&gt;<br>&gt;&gt;<br>&gt;&gt; I someone could point me into the right direction that would be great.<br>&gt;&gt;<br>&gt;&gt; Kind regards,<br>&gt;&gt;<br>&gt;&gt; Erik Dekkers (wvds-nl)<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-us" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-us</a><br>&gt;&gt; ers<br>&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<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-use" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-use</a><br>&gt; rs<br>&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><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>_______________________________________________<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><o:p></o:p></p></div></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>