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

相关推荐
Cyan_RA91 小时前
Linux 远程Ubuntu服务器扩展硬盘后,将/home目录移动到新的硬盘空间上(把新硬盘的分区挂载到/home目录) 教程
linux·运维·ubuntu
_dindong1 小时前
Linux网络编程:Socket编程TCP
linux·服务器·网络·笔记·学习·tcp/ip
七宝大爷1 小时前
深度解析英伟达DGX与HGX服务器——从架构差异到场景选择
运维·服务器·架构
wanhengidc1 小时前
服务器的安全性如何?
运维·服务器·安全·游戏·智能手机
taxunjishu1 小时前
DeviceNet 转 MODBUS TCP:倍福 CX 系列 PLC 与 MES 系统在 SMT 回流焊温度曲线监控的通讯配置案例
运维·人工智能·物联网·自动化·区块链
tianyuanwo1 小时前
tar打包过滤指定目录指南
linux·tar·过滤式打包
王嘉俊9251 小时前
DevOps 与 部署入门:加速软件交付与运维的实践指南
运维·devops
DARLING Zero two♡1 小时前
【Linux操作系统】简学深悟启示录:进程间通信
linux·运维·服务器
半梦半醒*1 小时前
gitlab部署
linux·运维·centos·ssh·gitlab·jenkins
liangshanbo12152 小时前
React + TypeScript 企业级编码规范指南
ubuntu·react.js·typescript