centos 7.8安装asterisk

安装前请先yum update下

yum install -y epel-release

yum update

关闭selinux和防火墙

并安装所需的编译工具

yum groupinstall core base "Development Tools

安装所需的依赖包

yum install libedit* uuid* libxml2* libuuid* libsqllite* -y

可以下载asterisk最新版了

wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-17.5.1.tar.gz

https://downloads.asterisk.org/pub/telephony/asterisk/

tar zxf asterisk

cd asterisk

./configure

会报错的话按如下进行

下面是我出现的错误 ,可能有所不同 但一般来说就是缺少工具,提示你安装工具包罢了

4.[root@asterisk asterisk-17.1.0]# ./configure
[root@asterisk asterisk-17.1.0]# Please install the ‘libedit’ development package
解决方法 : apt-get install libedit-dev
5.[root@asterisk asterisk-17.1.0]# ./configure
[root@asterisk asterisk-17.1.0]# configure: error: *** uuid support not found (this typically means the uuid development package is missing)
解决方法: apt-get install uuid-dev
6.[root@asterisk asterisk-17.1.0]# ./configure
[root@asterisk asterisk-17.1.0]# configure: *** Asterisk requires libjansson >= 2.11 and no system copy was found.
configure: *** Please install the ‘libjansson’ development package or
configure: *** use ‘./configure –with-jansson-bundled’

                    解决方法:            ./configure --with-jansson-bundled (这个错误可能后面还会出现几次 出现就用这个解决方法就可以了)

7.[root@asterisk asterisk-17.1.0]# ./configure –with-jansson-bundled
[root@asterisk asterisk-17.1.0]# configure: *** The Asterisk menuselect tool requires the ‘libxml2’ development package.
configure: *** Please install the ‘libxml2’ development package.

                    解决方法:            apt-get install libxml2-dev

8.[root@asterisk asterisk-17.1.0]# ./configure –with-jansson-bundled
[root@asterisk asterisk-17.1.0]# configure: error: *** Asterisk now uses SQLite3 for the internal Asterisk database.

                    解决方法:               apt-get install libsqlite3-dev

make

make install

make sampale

make basic-pbx

make progdocs

make config

idconfig

ls /etc/asterisk

asterisk start

asterisk -rv 进入控制台

发表评论

电子邮件地址不会被公开。 必填项已用*标注