Asterisk Ubuntu 安装

更新环境

sudo apt update

sudo apt install wget build-essential git autoconf subversion pkg-config libtool

sudo contrib/scripts/get_mp3_source.sh

A addons/mp3

A addons/mp3/common.c

A addons/mp3/huffman.h

A addons/mp3/tabinit.c

A addons/mp3/Makefile

A addons/mp3/README

A addons/mp3/decode_i386.c

A addons/mp3/dct64_i386.c

A addons/mp3/MPGLIB_TODO

A addons/mp3/mpg123.h

A addons/mp3/layer3.c

A addons/mp3/mpglib.h

A addons/mp3/decode_ntom.c

A addons/mp3/interface.c

A addons/mp3/MPGLIB_README

已导出版本 204。

安装预先需要

sudo contrib/scripts/install_prereq install

编译

./configure

问题:github网络不通,下载失败。

pjproject-2.13.1.tar.bz2 自己下载,下载后放tmp

configure: Menuselect build configuration successfully completed

               .$$$$$$$$$$$$$$$=..      
            .$7$7..          .7$$7:.    
          .$$:.                 ,$7.7   
        .$7.     7$$$$           .$$77  
     ..$$.       $$$$$            .$$$7 
    ..7$   .?.   $$$$$   .?.       7$$$.
   $.$.   .$$$7. $$$$7 .7$$$.      .$$$.
 .777.   .$$$$$$77$$$77$$$$$7.      $$$,
 $$$~      .7$$$$$$$$$$$$$7.       .$$$.
.$$7          .7$$$$$$$7:          ?$$$.
$$$          ?7$$$$$$$$$$I        .$$$7 
$$$       .7$$$$$$$$$$$$$$$$      :$$$. 
$$$       $$$$$$7$$$$$$$$$$$$    .$$$.  
$$$        $$$   7$$$7  .$$$    .$$$.   
$$$$             $$$$7         .$$$.    
7$$$7            7$$$$        7$$$      
 $$$$$                        $$$       
  $$$$7.                       $$  (TM)     
   $$$$$$$.           .7$$$$$$  $$      
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$      
       $$$$$$$$$$$$$$$$.     

进行功能选择

make menuselect

Enable Core sound modules you want to use.

You can also add additional MOH packages you want to use.

Do the same for Extra Sound Packages.

编译

make

make install

+---- 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:              +
 +                                           +
 + For generic reference documentation:      +
 +    make samples                           +
 +                                           +
 + For a sample basic PBX:                   +
 +    make basic-pbx                         +
 +                                           +
 +                                           +
 +-----------------  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    +
 +-------------------------------------------+

安装示例配置文件: sudo make samples

配置Asterisk在启动时自动启动: sudo make config

C-API文档:sudo make prodocs

启动

sudo service asterisk start

相关推荐
_infinite_1 分钟前
Ubuntu 与Uboot网络共享资源
linux·服务器·ubuntu
masterMono2 分钟前
Ubuntu中常用的操作指令
linux·运维·ubuntu
佚明zj2 分钟前
ubuntu如何进行自动mount硬盘(简易法)
linux·运维·ubuntu
白如意i3 分钟前
如何在 Ubuntu 16.04 服务器上安装 Python 3 并设置编程环境
linux·python·ubuntu
小糖子先森4 分钟前
安装WINDOWS微软商店已下架的WSL系统,以UBUNTU 16.04 为例
linux·运维·ubuntu
wydydgh11 分钟前
docker 升级步骤
运维·docker·容器
zhouwu_linux26 分钟前
移植Linux:如何制作rootfs?
linux·运维·microsoft
MXsoft61840 分钟前
it基础软件运维管理:从操作系统到数据库,再到中间件和应用系统
运维
_.Switch1 小时前
构建现代应用的Python Serverless架构详解
运维·开发语言·python·云原生·架构·serverless·restful
“JB...One”2 小时前
openssl-AES-128-CTR加解密结构体
linux·数据结构·算法·ssl