配置odbc见其他
2、安装 mysql
3、从 http://www.asterisk.org/downloads 下载新版的asterisk(asterisk-11-current.tar.gz)
4、复制解压。
5、进入解压后的目录 asterisk-11.2.1,执行./configure
6、执行 make menuselect 选择要按照的组件
7、执行 make
8、执行 make install
9、执行 make samples
10、安装mysql
apt-get install libmyodbc
配置Asterisk:
1、modules.conf
[modules]
preload => res_odbc.so
preload => res_config_odbc.so
2、extconfig.conf
sipusers => odbc,asterisk,sippeers
sippeers => odbc,asterisk,sippeers
3、res_odbc.conf
[asterisk]
enabled => yes
dsn => asterisk
username => asterisk
password => asterisk
pre-connect => yes
limit => 5
4.
etc/odbc.conf
Description = MySQL database
Trace = On
TraceFile = stderr
Driver = mysql
SERVER = localhost
USER = root
PASSWORD = mypassword
PORT = 3306
DATABASE =asterisk
Socket= /var/run/mysqld/mysqld.sock