<span style="font-family:verdana,sans-serif">/etc/odbc.ini<br><br>[telco-ops]</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Description = Asterisk realtime and other FUNC_ODBC access</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">Driver = MySQL</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Server = 172.18.100.18</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">Socket = /var/lib/mysql/data3306/mysql.sock</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">User = dba</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">Password = c3podb@2012</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Database = mytelcoexample</span><br style="font-family:verdana,sans-serif">
<span style="font-family:verdana,sans-serif">Port = 3306</span><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Option = 3</span><br style="font-family:verdana,sans-serif">
<br style="font-family:verdana,sans-serif"><div style="font-family:verdana,sans-serif" class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 4:34 PM, Thorsten Göllner <span dir="ltr"><<a href="mailto:tg@ovm-group.com" target="_blank">tg@ovm-group.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Am 10.12.2012 06:37, schrieb Chandrakant Solanki:<div><div class="h5"><br>
<blockquote type="cite">Hi All,<br>
<br>
OS : CentOS 5 64bit
OS & Machine<br>
Asterisk: 1.8.13.0<br>
ODBC Packages:<br>
unixODBC-2.2.11-7.1<br>
mysql-connector-odbc-3.51.12-2.2<br>
unixODBC-devel-2.2.11-7.1<br>
<br>
res_odbc.conf<br>
<br>
[telco-ops]<br>
enabled => yes<br>
dsn => telco-ops<br>
username => dba<br>
password =>
c3podb@2012<br>
pre-connect => yes<br>
sanitysql =>
select 1<br>
idlecheck => 15<br>
;isolation =>
repeatable_read<br>
pooling => yes<br>
limit => 3600<br>
connect_timeout =>
10<br>
negative_connection_cache
=> 30<br>
<br>
Above is my
installation package and configuration file (res_odbc.conf),
when I try to execute "odbc show all" it always gives below
output.<br>
<br>
<br>
*CLI> odbc show all<br>
<br>
ODBC DSN Settings<br>
-----------------<br>
<br>
Name: telco-ops<br>
DSN: telco-ops<br>
Last connection attempt: 1970-01-01 00:00:00<br>
Pooled: Yes<br>
Limit: 3600<br>
Connections in use: 1<br>
- Connection 1: connected<br>
<br>
When
Insert/Update/Select query will be executed, it can't update
last connection attempt field. In result, ODBC stuck after few
minutes, and in this case I also need to restart asterisk,
because I can't type any command, it can't give any command's
output.<br>
<br>
Also updated asterisk
with 10.9.0, but same result.<br>
<br>
</blockquote>
<br></div></div>
Please show us /etc/odbc.ini too.<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Chandrakant Solanki<br>
</div>