freeswitch在centos上编译过程

操作系统:centos9-last

bash 复制代码
usr/local/freeswitch/bin/freeswitch -version
FreeSWITCH version: 1.10.13-dev+git~20250125T131725Z~3f1e4bf90a~64bit (git 3f1e4bf 2025-01-25 13:17:25Z 64bit)
bash 复制代码
vi /etc/ssh/sshd_config
ip a
nmtui
reboot
ip a
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9 https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9
sudo chmod 644 /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
ip a
nmtui
reboot
dnf update
dnf install epel-release -y
dnf update
dnf update -y
dnf groupinstall "Development Tools" -y
dnf install yasm -y
dnf install pcre pcre-devel -y
dnf install speex speexdsp speex-devel speexdsp-devel -y
dnf install libedit-devel -y
dnf install libtiff-devel -y
dnf install wget -y
dnf install libjpeg-devel -y
dnf install spandsp-devel
git clone https://github.com/signalwire/freeswitch.git
git clone https://github.com/freeswitch/spandsp.git
git clone https://github.com/freeswitch/sofia-sip
ls
cd sofia-sip/
ls
./bootstrap.sh 
make && make install
./configure
make && make install
cd ..
ls
cd spandsp/
ls
./bootstrap.sh 
rm -rf config
./bootstrap.sh 
./autogen.sh
./configure
make && make install
cd ~/freeswitch/
ls
./bootstrap.sh 
./configure
dnf install libmariadb
dnf install libmariadb-devel
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
dnf install libmariadb-devel
./configure
dnf install sqlite-devel
./configure
dnf install libcurl-devel
./configure
dnf install libldns
dnf install libldns-devel
dnf install dns-devel
dnf install ldns-devel
./configure
 dnf install libks-devel
cd ..
git clone https://github.com/signalwire/libks.git
ls
cd libks/
ls
cmake .
dnf install cmake
cmake .
make
ls
./scan_build.sh 
dnf install uuid
cmake .
dnf install libuuid-devel
cmake .
make && make install
cd ~/freeswitch/
ls
make
./configure
make
sudo dnf install lua-devel
make
dnf install libopus-devel
sudo dnf install opus-devel
make
cd ..
git clone https://gitlab.xiph.org/xiph/opus.git
cd opus
LS
ls
./autogen.sh 
ls
./git clone https://gitlab.xiph.org/xiph/opus.git
cd opus
./configure 
make && make install
cd ../freeswitch/
make
dnf install libopus-dev
make
dnf install libsndfile-dev
rpm -qa | grep opus
sudo dnf install pkg-config
cd ..
git clone https://gitlab.com/libsndfile/libsndfile.git
git clone https://github.com/libsndfile/libsndfile.git
ls
cd libsndfile/
ls
mkdir build
cd build/
cmake ..
dnf install sndfile
dnf install libvorbis-devel
cmake ..
sudo dnf install flac-devel
cmake ..
make && make install
cd ../../freeswitch/
ls
make
make install
cd /usr/local/freeswitch/
ls
cd bin/
ls
./freeswitch 
cd /usr/local/freeswitch/bin/
./fs_cli 
ps aux | grep freeswitch
groupadd freeswitch 
useradd -g freeswitch freeswitch
chown -R freeswitch:freeswitch /usr/local/freeswitch
vi /etc/systemd/system/freeswitch.service
systemctl daemon-reload
systemctl start freeswitch
systemctl enable freeswitch
vi ~/.bash_profile
reboot

模块信息 #号为编译失败

bash 复制代码
applications/mod_commands
applications/mod_conference
applications/mod_curl
applications/mod_db
applications/mod_dptools
applications/mod_enum
applications/mod_esf
applications/mod_expr
applications/mod_fifo
applications/mod_fsv
applications/mod_hash
applications/mod_httapi
applications/mod_sms
#applications/mod_spandsp
applications/mod_valet_parking
applications/mod_voicemail
codecs/mod_amr
codecs/mod_b64
codecs/mod_g723_1
codecs/mod_g729
codecs/mod_h26x
#codecs/mod_opus
dialplans/mod_dialplan_asterisk
dialplans/mod_dialplan_xml
endpoints/mod_loopback
endpoints/mod_rtc
endpoints/mod_skinny
endpoints/mod_sofia
endpoints/mod_verto
event_handlers/mod_cdr_csv
event_handlers/mod_cdr_sqlite
event_handlers/mod_event_socket
event_handlers/mod_json_cdr
event_handlers/mod_odbc_cdr
formats/mod_local_stream
formats/mod_native_file
formats/mod_png
#formats/mod_sndfile
formats/mod_tone_stream
languages/mod_lua
loggers/mod_console
loggers/mod_logfile
loggers/mod_syslog
say/mod_say_en
xml_int/mod_xml_cdr
xml_int/mod_xml_curl
xml_int/mod_xml_rpc
xml_int/mod_xml_scgi
相关推荐
贾宝玉的玉宝贾1 天前
FreeSWITCH 简单图形化界面40 - 使用mod_curl模块进行http请求
python·http·voip·freeswitch·sip
狂爱代码的码农18 天前
FreeSwitch之mod_cidlookup 和 mod_blacklist和mod_curl的抉择
freeswitch
狂爱代码的码农18 天前
FreeSwitch 的 `mod_blacklist` 模块详解
freeswitch
狂爱代码的码农1 个月前
debian12.9编译freeswitch1.10.12【默认安装】
freeswitch
Mike_Zhang2 个月前
FreeSWITCH日志功能分析及apr模拟
voip·freeswitch
贾宝玉的玉宝贾2 个月前
FreeSWITCH 简单图形化界面39 - Windows安装FreeSWITCH For IPPBX(WSL环境)
windows·voip·freeswitch·ippbx·sip测试
贾宝玉的玉宝贾2 个月前
FreeSWITCH 简单图形化界面38 - 使用uniapp中使用JsSIP进行音视频呼叫
uni-app·音视频·voip·freeswitch·ippbx·jssip
代码浪人3 个月前
docker 基于Debian镜像安装FreeSwitch1.10.7
docker·容器·debian·freeswitch
new_abc3 个月前
Sofia-SIP 使用教程
freeswitch·sofia