CREATE TABLE sip_friends ( name VARCHAR(40) NOT NULL DEFAULT ‘’, username VARCHAR(40) NULL DEFAULT ‘’, secret VARCHAR(40) NOT NULL DEFAULT ‘’, context VARCHAR(40) NOT NULL DEFAULT ‘’, ipaddr VARCHAR(20) NOT NULL DEFAULT ‘’, port INT(6) NOT NULL DEFAULT ‘0’, regseconds INT(11) NOT NULL DEFAULT ‘0’,
PRIMARY KEY (name)
)
i have installed and configured ODBC. I am using MySQL database.
Along with that i have made entries in extconfig.conf:
sip.conf => odbc,asterisk,sip_friends
But asterisk real time is not working. unable to login with voip client.
What else i need to do?
# Driver from the mysql-connector-odbc package
# Setup from the unixODBC package
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
Pooling = Yes
"odbcinst.ini" 24L, 628C
From Asterisk CLI “odbc show all” returning as follows
srv*CLI> odbc show all
ODBC DSN Settings
-----------------
Name: root
DSN: asterisk-connector
Number of active connections: 1 (out of 1)
Logging: Disabled