<br><br><div class="gmail_quote">On Fri, Oct 1, 2010 at 3:05 PM, ovvenkat <span dir="ltr">&lt;<a href="mailto:ovvenkatesan@gmail.com">ovvenkatesan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><br><br><div class="gmail_quote"><div class="im">On Thu, Sep 30, 2010 at 1:29 PM, Leon de Rooij <span dir="ltr">&lt;<a href="mailto:leon@scarlet-internet.nl" target="_blank">leon@scarlet-internet.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi Venkat,<div><br></div><div>Please try to get latest revision from git. The Dbh function was introduced in mod_lua since 7 sept. You don&#39;t need to install any extra packages in your os if you have odbc already working in FreeSWITCH itself.</div>

<div><br></div></div></blockquote></div><div><br>Hi Leon, I have updated to latest git version.  My new version is  <br><br><span style="background-color: rgb(204, 204, 255);">FreeSWITCH Version 1.0.head (svn-18355M)</span><br>
</div></div></div></blockquote><div><br>Clearly you don&#39;t have the latest git version. The above is from svn mirror, which is not being synced with git repo anymore. <br>If you were using git, you would see something like this:<br>
<br>FreeSWITCH Version 1.0.head (git-b6a81ba 2010-09-27 21-36-02 -0500)<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">
<div class="gmail_quote"><div>
<br>Still, I am not able to  use freeswitch.Dbh. I am getting error like <br><br><span style="background-color: rgb(255, 204, 204);">2010-10-01 11:22:38.226735 [ERR] mod_lua.cpp:182 /usr/local/freeswitch/scripts/test.lua:23: attempt to call field &#39;Dbh&#39; (a nil value)</span><div class="im">
<br style="background-color: rgb(255, 204, 204);">
<span style="background-color: rgb(255, 204, 204);">stack traceback:</span><br style="background-color: rgb(255, 204, 204);"><span style="background-color: rgb(255, 204, 204);">        /usr/local/freeswitch/scripts/test.lua:23: in main chunk</span><br>

<br><br></div>I can able to connect to mysql using java script, the script i have used <br><br><span style="background-color: rgb(153, 255, 153);">use(&quot;ODBC&quot;);</span><br style="background-color: rgb(153, 255, 153);">
<span style="background-color: rgb(153, 255, 153);">var db = new ODBC(&quot;dsn_name&quot;, &quot;venkat&quot;, &quot;venkat123&quot;);</span><br>
<br>Thanks in advance, <br>Venkat.  <br><br></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div>
</div><div>Kind regards,</div>
<div><br></div><font color="#888888"><div>Leon</div></font><div><div></div><div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Sep 30, 2010, at 9:47 AM, ovvenkat wrote:</div><br><blockquote type="cite">

<div dir="ltr"><span>Hi to all, <br><br>If I wanted to use &quot;freeswitch.Dbh&quot; to connect mysql,  Can you anyone please guide me, what are the packages I need to install ?</span><br><br>As of now, I have installed mysql and unixodbc <br>

 <br><div class="gmail_quote">On Thu, Sep 30, 2010 at 11:03 AM, ovvenkat <span dir="ltr">&lt;<a href="mailto:ovvenkatesan@gmail.com" target="_blank">ovvenkatesan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

 <div dir="ltr">Hi Sassan, <br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Which version of FreeSWITCH?<br>

 <br></blockquote><div><br>    FreeSWITCH Version 1.0.6<br> <br>    Installed on CENT OS 5.3 <br> <br> <br><br>Regards,<br>Venkat. <br><br><br></div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

 Regards<br> HASSAN<br> <div><div></div><div><br> <br> On 2010-09-30, ovvenkat &lt;<a href="mailto:ovvenkatesan@gmail.com" target="_blank">ovvenkatesan@gmail.com</a>&gt; wrote:<br> &gt; Hi to all,<br> &gt; I could not able to connect to mySql using Dbh. Here is the coding I have<br>

 &gt; used to connect to my db.<br> &gt; *<br> &gt; local dbh = assert(freeswitch.Dbh(&quot;dsn_name&quot;,&quot;venkat&quot;,&quot;venkat123&quot;))*<br> &gt;<br> &gt; I am getting following error while executing the lua test.lua in fs_cli<br>

 &gt;<br> &gt; 2010-09-29 17:57:29.924498 [ERR] mod_lua.cpp:182<br> &gt; /usr/local/freeswitch/scripts/test.lua:23: attempt to call field &#39;Dbh&#39; (a<br> &gt; nil value)<br> &gt; stack traceback: /usr/local/freeswitch/scripts/test.lua:23: in main chunk<br>

 &gt;<br> &gt; */etc/odbc.ini* file contains<br> &gt;<br> &gt; [dsn_name]<br> &gt; Driver=MySQL<br> &gt; SERVER=localhost<br> &gt; PORT=3306<br> &gt; USER=venkat<br> &gt; PASSWORD=venkat123<br> &gt; DATABASE=venkat<br> &gt; Socket = /var/lib/mysql/mysql.sock<br>

 &gt;<br> &gt; *I can able to connect to my db using following command *<br> &gt;<br> &gt; isql dsn_name venkat venkat123<br> &gt;<br> &gt; I trying to figure it out for past two days and gone though wiki  not able<br> &gt; to crack it. Any one please help me to resolve my issue.<br>

 &gt;<br> &gt;<br> &gt; --<br> &gt;<br> &gt; Regards<br> &gt; Venkatesan OV.<br> &gt;<br> <br> </div></div>--<br> Sent from my mobile device<br> <br> _______________________________________________<br> FreeSWITCH-users mailing list<br>

 <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>

 </blockquote></div></div></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>If you have come to help me, you are wasting your time. <br>If you have come to because your liberation is bound up in mine, we can work together.<br>

 <br>  <br>Regards<br>Venkatesan OV.</div><br> </div> </blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>If you have come to help me, you are wasting your time. <br>If you have come to because your liberation is bound up in mine, we can work together.<br>

<br>  <br>Regards<br>Venkatesan OV.</div><br> </div> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div><div><div></div><div class="h5"><br><br clear="all"><br>-- <br><div dir="ltr"><br>If you have come to help me, you are wasting your time. <br>If you have come to because your liberation is bound up in mine, we can work together.<br>

<br> <br>Regards<br>Venkatesan OV.</div><br>
</div></div></div>
<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>