Hi I have a Asterisk 11.12.1
From time to time my Asterisk restart I think its a database issue because on the log the last error is a database error:
[Jul 13 22:27:03] WARNING[2302] res_odbc.c: SetConnectAttr (Autocommit) returned an error: HY000: [FreeTDS][SQL Server]Could not change transaction status
[Jul 13 22:27:03] WARNING[2302] res_odbc.c: SetConnectAttr (Autocommit) returned an error: HY000: [FreeTDS][SQL Server]Could not change transaction status
[Jul 13 22:27:03] WARNING[2302] res_odbc.c: SetConnectAttr (Autocommit) returned an error: HY000: [FreeTDS][SQL Server]Could not change transaction status
[Jul 13 22:27:03] WARNING[2302] res_odbc.c: SQL Execute returned an error -1: 24000: [FreeTDS][SQL Server]Invalid cursor state (41)
[Jul 13 22:27:03] WARNING[2302] res_odbc.c: SQL Execute error -1! Verifying connection to asterisk [asterisk]...
[Jul 13 22:27:03] WARNING[2302] res_odbc.c: Connection is down attempting to reconnect...
[Jul 13 22:27:08] Asterisk 11.12.1 built by root @ GM-PBX-C6-01 on a x86_64 running Linux on 2020-12-02 18:01:18 UTC
The thing is that this is working all day but from time to time it returns this to me and restart.
I have this on my res_odbc.conf file.
[asterisk]
enabled=>yes
username=>user
password=>XXXX
pooling=>no
pre-connect=>yes
dsn=>asterisk
I haven’t found what its happening, do any of you checked over this?