在centOS5.9安装asterisk

  最近一直在研究asterisk这个服务器,Asterisk 是一个开放源代码的软件VoIP PBX系统,它是一个运行在Linux环境下的纯软件实施方案。Asterisk是一种功能非常齐全的应用程序,提供了许多电信功能,能够把你的x86机 器变成你自己的交换机,还能够当作一台企业级的商用交换机。Asterisk让人激动的事情是它在小企业预算可承受的范围内提供了商业交换机的功能和可伸 缩性。你可以使用一台老式的奔腾3计算机,让你的机构看起来就同世界上的大企业一样。

   下面就给大家介绍一下,怎么在centOS5.9安装asterisk:

        对于没有接触过linux的人来说:这个是在启动终端里面输入的。

        1 . 更新系统包到最新
            yum update -y 
        2.  机制 SELINUX  
            sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config 
 
        3. 重启系统
            reboot 
 
        4. 安装 Asterisk 依赖 的第三方包  
            yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel 
        5. 下载源码:
            mkdir /opt/src && cd /opt/src
            wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
            wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
            wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz 
 
         6. 安装:
           tar zxvf dahdi-linux-complete*
           tar zxvf libpri*
           tar zxvf asterisk*
  
           cd /opt/src/dahdi-linux-complete*
           make && make install && make config 
    
           cd /opt/src/libpri*
           make && make install
           cd /opt/src/asterisk* 
           ./configure && make menuselect && make && make install
 
 
           如果中间安装有错误,需要清空之前的文件
           make clean && make distclean
           安装配置文件 到/etc/asterisk 
           make samples 
           安装 Asterisk  启动脚本到/etc/init.d/  
           make config
 
          启动 Asterisk 
          service asterisk start
 
          连接 rasterisk 
 
[root@localhost ~]# rasterisk 
Asterisk 11.3.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=====================================================================
====
Connected to Asterisk 11.3.0 currently running on localhost (pid = 2383)
localhost*CLI> 
 
完毕!
 

转载于:https://www.cnblogs.com/junrong624/p/3373816.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值