当前位置: 首页 > news >正文

freeswitch编译mod_av支持webrtc MCU通话

系统环境
一、FS相关网站
二、第三方库安装
1.apt安装
2.指定版本sofia-sip安装
3.指定版本spandsp安装
4.指定版本libks安装
5.指定版本openssl安装
三、指定版本FS安装
1.CPPFLAGS配置
2.编译器版本
3.FS配置编译
四、FS,fs_cli运行,模块加载
附录
1.安装包,FS,编译好的两个浏览器客户端压缩包
2.video-demo和Verto Communicator的github地址
3.demo相关WIKI
4.freeswitch微信交流群
扉页

系统环境

lsb_release -a

No LSB modules are available. Distributor ID: Ubuntu
Description: Ubuntu 22.10 Release: 22.10 Codename: kinetic

uname -a

Linux yqw-Lenovo-XiaoXinPro-13ARE-2020 6.2.0-37-generic
#38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

一、FS相关网站

FS中文社区http://freeswitch.org.cn/blog/2023/08/use_srs/
FS官网https://signalwire.com/freeswitch
FS官方WIKI:https://developer.signalwire.com/freeswitch/
FS官方github:https://github.com/signalwire/freeswitch

二、第三方库安装

1.apt安装

sudo apt install libtool-bin
sudo aptitude install libtiff-dev
sudo aptitude install libsqlite3-dev sqlite3
sudo aptitude install libpcre3-dev
sudo aptitude install libspeexdsp-dev
sudo apt install libldns-dev
sudo apt-get install libedit-dev
sudo apt-get install -y yasm nasm libavformat-dev libswscale-dev

2.安装sofia-sip

git clone https://github.com/freeswitch/sofia-sip.git
cd sofia-sip
git rest --hard 6198851a610b7889c17e2d98fb84617bc1dd7aec
./bootstrap.sh -j
./configure
make
make install

3.安装spandsp

git clone https://github.com/freeswitch/spandsp.git
cd spandsp
git reset --hard 0d2e6ac65e0e8f53d652665a743015a88bf048d4
./bootstrap.sh -j
./configure
make
sudo make install
ldconfig

4.libks安装

git clone https://github.com/signalwire/libks.git
git reset --hard 940d659c583b255a96cac77e7e9fe62195c40e0b
cmake 
make
sudo make install

5.openssl安装
需要先卸载本身的openssl
openssl-1.1.1v,官方下载地址,版本3会有问题。
https://www.openssl.org/source/

//https://github.com/signalwire/signalwire-c.git
//applications/mod_signalwire前的#删除

不需要装libav,因为已经执行如下命令
sudo apt-get install -y yasm nasm libavformat-dev libswscale-dev

三、FS安装

1.CPPFLAGS配置

export CPPFLAGS="-Wno-array-parameter -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=maybe-uninitialized -Wno-error=switch -Wno-error=format-overflow -Wno-error=address -Wno-error=stringop-truncation"

2.编译器版本
gcc/g++ version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
3.FS配置编译

git clone https://github.com/signalwire/freeswitch.git
git reset --hard 4cb05e7f4a23645ec387f3b5391194128be7d193

//或者在github,tag里下载freeswitch-1.10.10,以上master提交版本也属于1.10.10

sudo vim modules.conf
//applications/mod_av前的#删除
./bootstrap.sh && ./configure && make -j20
sudo make install
//sudo make sounds-install sudo make moh-install 
//sudo make hd-sounds-install    sudo make hd-moh-install
//cd src/mod/applications/mod_av && make && make install 

四、FS,fs_cli运行,模块加载

sudo ./freeswitch -nc -nonat //如果想看日志不加后面两个参数
sudo ./fs_cli
load mod_av
load mod_verto

附录:

1.安装包,FS,编译好的两个浏览器客户端压缩包
2.video-demo和Verto Communicator两个demo github
3.demo相关WIKI
编译参考1
编译2和打电话慢配置
编译参考3
Verto Communicator-WIKI
mod_verto-WIKI
mod_conference(conference.conf.xml–WIKI)
如何在FreeSWITCH中对接SRS
Verto Documentation
FS各种库集合
FS增加h264

扉页

sudo apt-get install gcc-10
sudo apt-get install g+±10
sudo ln -sf /usr/bin/gcc-10 /usr/bin/gcc
sudo ln -sf /usr/bin/g+±10 /usr/bin/g++

freeswitch-1.8.7自带的sip库不匹配源码
v1.10(git clone拉)和libav都是最新的,依然有codecpar和codec问题
git clone https://freeswitch.org/stash/scm/sd/libav.git
v1.10.0/1.8.7配libav11.12有以下问题,但实际libks已装
You must install libks to build mod_signalwire。 停止。

wget -c http://files.freeswitch.org/downloads/libs/libav-12.tar.bz2

freeSWITCH自1.6之后,支持视频MCU了

笔者下载的linphone4.3版本,注册终端(注意使用h264编码) 呼叫 3500 ,再使用不同的账号注册后呼叫3500,这样视频会议就开始了。

http://www.lryc.cn/news/255666.html

相关文章:

  • K8s 入门指南(一):单节点集群环境搭建
  • python socket编程6 - 使用PyQt6 开发UI界面实现TCP server和TCP client单机通讯的例子
  • centos上安装并持久化配置LVS
  • 多线程并发Ping脚本
  • SpringBoot Seata 死锁问题排查
  • 文章解读与仿真程序复现思路——电力系统自动化EI\CSCD\北大核心《考虑两阶段鲁棒优化配置的多微网合作博弈》
  • Redis常见类型
  • 深入了解数据库锁:类型、应用和最佳实践
  • python3.5安装教程及环境配置,python3.7.2安装与配置
  • ubuntu安装tomcat并配置前端项目
  • GeoPandas初体验:它是什么,我用它展示一下shp矢量数据
  • Python-滑雪大冒险【附源码】
  • Linux---日志管理
  • Java高级技术-单元测试
  • springboot集成邮箱验证功能
  • HarmonyOS应用程序框架——UIAbility实操
  • 数实融合!低代码推动工业数字化转型走“深”向“实”
  • OpenGL学习资料
  • 字符串指令集
  • 行云海CMS SQL注入漏洞复现
  • 窗口函数之 first_value() 和 last_value()
  • 习题练习讲解
  • C++STL的string模拟实现
  • 基于ZLMediaKit的webrtc实时视频传输demo搭建
  • LeetCode双指针:有序数组中的单一元素
  • 熬夜会秃头——Beta冲刺总结随笔
  • C++函数模板案例
  • 同旺科技 USB TO RS-485 定制款适配器--- 拆解(三)
  • Vue学习计划-Vue2--Vue核心(六)过滤器和自定义指令
  • Codeforces Round 913 (Div. 3) (A-G)