安装asterisk

在centos6.5上:

yum -y install lynx mysql-server mysql mysql-devel php php-mysql php-mbstring tftp-server
httpd ncurses-devel sendmail sendmail-cf sox newt-devel libxml2-devel libtiff-devel
audiofile-devel gtk2-devel subversion kernel-devel git php-process crontabs cronie
cronie-anacron wget vim php-xml uuid-devel sqlite-devel net-tools gnutls-devel php-pear

需要安装odbc 并且修改配置项
[asterisk-connector]
Description = MySQL connection to 'asterisk' database
Driver = MySQL
Database = db_asterisk
Server = localhost
Port = 3306
Socket = /var/lib/mysql/mysql.sock

原文地址:https://www.cnblogs.com/phpzhou/p/5603192.html