asterisk 配置mysql_asterisk安装、配置

asterisk官网有安装的具体步骤和教程,这里我主要参考官网中的源码安装方式。链接

1、关闭SELinux、防火墙

sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux

service iptables stop

2、系统更新

yum install -y epel-release

yum update -y

3、安装依赖库和附加服务

yum install -y gcc gcc-c++ lynx bison mysql-devel mysql-server php php-mysql php-pear php-mbstring tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git subversion kernel-devel php-process crontabs cronie cronie-anacron wget vim php-xml uuid-devel libtool sqlite-devel unixODBC mysql-connector-odbc

4、下载:

1)asterisk:

cd /usr/local/scr/

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

2)libpri:

You'll only need this if you are going to use DAHDI with ISDN interface hardware (such as T1/E1/J1/BRI cards).

wget http://downloads.asterisk.org/pub/telephony/libpri/old/libpri-1.5.0.tar.gz3)DAHDI:

cd /usr/local/src/

wget https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz

注:启动dahdi时会遇到一个问题,dahdi: unrecognized service,原因是版本太高了,后来选择了一个旧版本的就可以了。

cd /usr/local/src/

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.0+2.6.0.tar.gz587

tar zxvf dahdi-linux-complete-2.6.0+2.6.0.tar.gz

cd dahdi-linux-complete

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值