先直接上命令
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar -zxvf asterisk-16-current.tar.gz
yum -y install gcc-c++
yum -y install patch
yum -y install libedit-devel
yum -y insatll libxml2-devel
yum -y insatll sqlite-devel
cd asterisk-16.28.0/
sudo ./configure --with-jansson-bundled
上面的yum都是先靠sudo ./configure 一个个校验出缺什么,就安装什么。校验通过会出现下图:
编译安装
sudo make
sudo make install
文档(https://wiki.asterisk.org/wiki/display/AST/Getting+Started)
启动重启
asterisk -cvvvvv
asterisk -rvvvvv