# apt install unixodbc
# apt install odbc-mariadb
!!! Ничего не нужно менять !!! debian11# less /etc/odbcinst.ini
# cat /etc/odbc.ini
[asterisk] Description=DSN to asterisk mysql DB Driver=MariaDB Unicode ###Server=localhost ###Port=3306 Socket=/var/run/mysqld/mysqld.sock USER=asterisk Password=asterisk Database=asterisk ReadOnly=No Charset=utf8
# isql -v asterisk
SQL> show tables; SQL> select * from cdr; SQL> select fullname from sipfriends; SQL> quit