最近一直在研究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> 
 
完毕!

最新文章

  1. React Native知识5-Touchable类组件
  2. POJ1151Atlantis 矩形面积并[线段树 离散化 扫描线]
  3. 【Python全栈笔记】05 [模块二] 19 Oct 文件的操作
  4. [设计模式] Javascript 之 观察者模式
  5. 烧写AT91Bootstrap不能连接SAM-BA的解决方法
  6. [android] 手机卫士自定义控件的属性
  7. Virtual Memory DEMAND PAGING - The avoidance of thrashing was a major research area in the 1970s and led to a vari- ety of complex but effective algorithms.
  8. POJ 3468 线段树裸题
  9. 近期C++编译问题汇总
  10. SRM 599 DIV 2
  11. Android颜色转换工具类ColorUtil
  12. iOS 图形编程总结
  13. Linux计划任务及压缩归档(week2_day1)--技术流ken
  14. nginx实现Ipv6地址解析
  15. SpringAop注解实现日志的存储
  16. React Native之配置URL Scheme(iOS Android)
  17. 采用梯度下降优化器(Gradient Descent optimizer)结合禁忌搜索(Tabu Search)求解矩阵的全部特征值和特征向量
  18. iOS Simulator version 11 or later is currently not supported.
  19. Linux - 查看和更改系统字符集
  20. SpringMVC 使用JSR-303进行校验 @Valid

热门文章

  1. C++复制控制:拷贝构造函数
  2. ElasticSearch自定义分词器
  3. oracle管道函数的用法
  4. 如何修改localhost为自己指定的域名
  5. Python中的collections模块
  6. 对于Dubbo一些面试题自己的答案
  7. excel怎么一次性生成10万个6位连续数 和 随机6位数
  8. flask第十六篇——Response【2】
  9. {Notes}{Latex}{multirow}
  10. 【DUBBO】dubbo的registry配置