系統環境
一、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,這樣視頻會議就開始了。