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

相关推荐
A-刘晨阳1 分钟前
【Linux】Redis 6.2.6 的二进制部署【适用于多版本】
linux·运维·redis
cat_with_cat19 分钟前
Linux网络:UDP socket创建流程与简单通信
linux·网络·udp
2401_861615281 小时前
跨平台的ARM 和 x86 Docker 镜像:汇编语言实验环境搭建
linux·汇编·ubuntu·docker·容器
hz355721 小时前
IO多路复用--epoll
linux
努力学习的小廉1 小时前
深入了解linux系统—— System V之消息队列和信号量
android·linux·开发语言
华无丽言1 小时前
如何简单实现发版不影响客户使用?nginx负载
linux·nginx
自由游戏开发者1 小时前
用U盘启动制作centos系统最常见报错,系统卡住无法继续问题(手把手)
linux·运维·centos
Ronin3052 小时前
【Linux系统】vim编辑器 | 编译器gcc/g++ | make/Makefile
linux·运维·服务器·ubuntu·编辑器·vim
Bruce_Liuxiaowei2 小时前
Netstat高级分析工具:Windows与Linux双系统兼容的精准筛查利器
linux·运维·网络·windows·安全
yt948322 小时前
C#实现CAN通讯接口
java·linux·前端