<div>So, where is FreeSWITCH looking for the odbc.ini file? </div><div>I keep reading conflicting information, including /usr/local/freeswitch/etc/, /usr/local/etc, /usr/etc, /home/username/ </div><div><br></div><br><br>
<div class="gmail_quote">On Sat, Oct 17, 2009 at 9:11 PM, Adam Wilt <span dir="ltr"><<a href="mailto:wiltingtree@gmail.com">wiltingtree@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Brian,</div><div><br></div><div>Here's how I'm using the ODBC in my .js file:</div><div><br></div><div>use("ODBC");</div><div><br></div><div>var DSN="mydsn";</div><div>var DB_USER="myuser";</div>
<div>var DB_PASS="mypass";</div><div>.</div><div>.</div><div>.</div><div><div>var db = new ODBC(DSN, DB_USER, DB_PASS);</div><div>db.connect();</div><div>.</div><div>.</div><div>.</div><div><br></div><div>Thanks.</div>
</div><div><div></div><div class="h5"><div><br></div><br><div class="gmail_quote">On Sat, Oct 17, 2009 at 8:56 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How are you using this from your javascript code?<br>
<br>
/b<br>
<div><br>
On Oct 17, 2009, at 7:13 PM, Adam Wilt wrote:<br>
<br>
><br>
> 2009-10-17 23:56:21.848930 [ERR] switch_odbc.c:188 STATE: IM002 CODE<br>
> 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and<br>
> no default driver specified<br>
><br>
> 2009-10-17 23:56:21.848930 [ERR] mod_spidermonkey_odbc.c:245<br>
> Database is not connected!<br>
><br>
<br>
<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></blockquote></div><br>