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

相关推荐
少妇的美梦16 小时前
logstash教程
运维
chen94516 小时前
k8s集群部署vector日志采集器
运维
chen94516 小时前
aws ec2部署harbor,使用s3存储
运维
轻松Ai享生活20 小时前
5 节课深入学习Linux Cgroups
linux
christine-rr21 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神55521 小时前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆21 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_2642208921 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++1 天前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy1 天前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡