On 12/23/2020 12:47 PM, the...@sys-concept.com wrote: > When I try to register provision/register equipment to asterisk I get an > error message: > > [Dec 23 12:32:51] WARNING[21685]: db.c:350 ast_db_put: Couldn't execute > statement: SQL logic error > -- Registered SIP 'pstn-5665' at 10.0.0.110:5060 > > Saved useragent "Audiocodes-Sip-Gateway-/v.5.80A.032.003" for peer > pstn-5665 > [Dec 23 12:32:51] WARNING[21685]: db.c:350 ast_db_put: Couldn't execute > statement: SQL logic error > -- Registered SIP 'pstn-1270' at 10.0.0.110:5060 > > Saved useragent "Audiocodes-Sip-Gateway-/v.5.80A.032.003" for peer > pstn-1270 > [Dec 23 12:32:51] NOTICE[21685]: chan_sip.c:24776 handle_response_peerpoke: > Peer 'pstn-5665' is now Reachable. (61ms / 2000ms) > [Dec 23 12:32:51] WARNING[21685]: db.c:350 ast_db_put: Couldn't execute > statement: attempt to write a readonly database > -- Registered SIP '369' at 10.0.0.110:5060 > > /var/lib/asterisk > -rw-r--r-- 1 root root 16384 Dec 23 12:10 astdb.sqlite3 > > In my old asterisk-11.25 this file has owner "asterisk:astersik" but > changing the ownership of that file doesn't solve the problem, still getting > the same error: > > ast_db_put: Couldn't execute statement: attempt to write a readonly database
To solve it, I tried to follow the steps from: https://community.asterisk.org/t/asterisk-warning/78443 But it didn't help.