我的 odbc.ini 和 odbcinst.ini 如下 odbcinst.ini
[asterisk-connector]
Description = MySQL connection to 'asterisk' database
Driver = MySQL
Database = asterisk
Server = localhost
UID = asterisk
password = <mypassword>
Port = 3306
Socket = /var/run/mysqld/mysqld.sock
odbcinst.ini 看起来像这样:
~ $ more /etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
FileUsage = 1
res_odbc.conf 文件如下所示:
[asterisk]
enabled => yes
dsn => asterisk-connector
UID => asterisk
password => <myPassword>
pooling => no
limit => 1
pre-connect => yes
在星号 CLI 中运行 odbc show 后,我看到如下。
ip*CLI> odbc show
ODBC DSN Settings
-----------------
问题:1)在他们看到的教程中
*CLI> odbc show
ODBC DSN Settings
-----------------
Name: asterisk
DSN: asterisk-connector
Last connection attempt: 1969-12-31 19:00:00
Pooled: No
Connected: Yes
1) 为什么我在运行时看不到名称和 DSN odbc show
?2)我也明白了
[Jul 16 18:38:25] NOTICE[10970]: chan_sip.c:29427 sip_poke_noanswer: Peer 'nexmo' is now UNREACHABLE! Last qualify: 81
[Jul 16 18:38:36] WARNING[11288]: db.c:285 db_execute_sql: Error executing SQL: database is locked