zoukankan      html  css  js  c++  java
  • Asterisk安装

    一、获取asterisk安装包
    wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.0.tar.gz
    后面的版本号可以改变,可以安装的版本可以参考http://downloads.asterisk.org/pub/telephony/asterisk/releases/

    二、解压安装
    1.
     [root@~]# tar -zxvf asterisk-1.6.1.9.tar.gz                      // 解压asterisk安装包

    2.[root@~]# cd asterisk-1.6.1.9                                        // 进入asterisk安装包

    3.[root@asterisk asterisk-1.6.1.9]# ./configure                 // 环境检测和预配置

    4.[root@asterisk asterisk-1.6.1.9]# make clean                //清理旧的编译中间文件 

    5.[root@asterisk asterisk-1.6.1.9]# make all                     // 从新编译所有文件

    +--------- Asterisk Build Complete ---------+
    + Asterisk has successfully been built, and +
    + can be installed by running:              +
    +                                           +
    +                make install               +
    +-------------------------------------------+

    安装到这里软件会提示使用make install 来安装asterisk

    [root@asterisk asterisk-1.6.1.9]# make install                    // 安装asterisk

    +---- Asterisk Installation Complete -------+
    +                                           +
    +    YOU MUST READ THE SECURITY DOCUMENT    +
    +                                           +
    + Asterisk has successfully been installed. +
    + If you would like to install the sample   +
    + configuration files (overwriting any      +
    + existing config files), run:              +
    +                                           +
    +                make samples               +
    +                                           +
    +----------------- or ---------------------+
    +                                           +
    + You can go ahead and install the asterisk +
    + program documentation now or later run:   +
    +                                           +
    +               make progdocs               +
    +                                           +
    + **Note** This requires that you have      +
    + doxygen installed on your local system    +
    +-------------------------------------------+

    [root@asterisk asterisk-1.6.1.9]# make samples                  // 安装配置模板

    到这里askterisk安装完毕。

    三、启动asterisk

    1.输入asterisk,回车

    2.输入asterisk -r

    四、asterisk配置文件 

    asterisk.conf                       //asterisk的主配置文件 一般情况下不需要去改动

    sip.conf                               //sip协议主要配置文件

    extensions.conf                     //拨号规则配置文件

  • 相关阅读:
    程序员找工作必备 PHP 基础面试题 (四)
    Laravel 教程:使用Fast Excel解决导出超大 XLSX 文件(千万级)带来的内存问题
    ThinkPHP无限分类的使用
    PHP 的 interface 有什么用处?
    编写可读代码:通过提前返回来减少缩进
    调试事件的派发
    调试对象的构建
    [反汇编分析] 局部变量复用
    [IDA]批量载入结构体
    [反汇编分析]调用函数传入参数不一致时可能寄存器传入参数
  • 原文地址:https://www.cnblogs.com/einyboy/p/2735569.html
Copyright © 2011-2022 走看看