SIP - Centos 7 搭建freeswitch服务器

简单记录搭建流程,较为简单

一、环境准备

安装依赖:
复制代码
yum install -y git gcc-c++ wgetalsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-develdb-devel e2fsprogs-devel flite-devel g722_1-devel gdbm-devel gnutls-develilbc-devel ldns-devel libcodec2-devel libcurl libcurl-devel libedit-devellibidn-devel  libjpeg-devel  libmemcached-devel libogg-devel libssl-devellibsilk-devel libsndfile-devel libtheora-devel libtool libvorbis-devellibxml2-devel lua lua-devel lzo-devel mongo-c-driver-devel ncurses-develnet-snmp-devel  openssl-devel opus-develpcre pcre-devel perl perl-libs perl-ExtUtils-Embed libzrtpcpp-devellibtiff-devel libX11-devel expat-devel pkgconfig portaudio-develpostgresql-devel python26-devel python-devel soundtouch-devel speex speex-develsqlite-devel unbound-devel unixODBC-devel libuuid-devel which yasm zlib-devel libdb-develuuid-devel @development-tools
下载文件:
复制代码
​
curl -o freeswitch-1.6.0.zip https://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.0.zip

如果可以通过ftp连接的话可以提前下载好然后上传。我这里命令行下载是因为客户服务器ftp无权限,大概下载一个多小时。

二、解压编译

复制代码
unzip freeswitch-1.6.0.zip

cd freeswitch-1.6.0

./rebootstrap.sh -j 

./configure

make

make install

配置过程中缺少依赖会碰到的问题

问题1:configure: error: Library requirements (sqlite3 >= 3.6.20) not met 办法: yum install sqlite-devel.x86_64

安装依赖完成后继续执行./configure

问题2:configure: error: Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met

办法:yum install speex*

安装依赖完成后继续执行./configure

问题3:提示libedit-dev找不到。

办法: yum install libedit*

安装依赖完成后继续执行./configure

e.../configure执行完成后,先找到/usr/local/freeswitch-1.6.0/modules.conf 注释掉applications/mod_fsv、codecs/mod_vpx两行

三、使用

建立软连接
复制代码
ln -sf /usr/local/freeswitch/bin/freeswitch /usr/local/bin/
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/local/bin/

后台启动

复制代码
freeswitch -nc

停止

复制代码
freeswitch -stop

感谢

在Linux (Debain GNU/Linux7(64位) 搭建FreeSwitch-1.6.0_linux 下安装freeswitch-CSDN博客

Centos7.9搭建Freeswitch1.6.0详细教程_freeswitch搭建教程-CSDN博客

相关推荐
G_H_S_3_2 小时前
【网络运维】Linux:LNMP 项目实践
linux·运维·服务器·网络
Clownseven4 小时前
如何搭建私有Git服务器?Gitea安装与配置超详细教程 (替代GitHub/Gitee)
服务器·git·gitea
wdfk_prog4 小时前
[Linux]学习笔记系列 -- [arm][lds]
linux·运维·arm开发·笔记·学习
MUTA️5 小时前
服务器使用ADB调试手机
服务器·adb·智能手机
CAE虚拟与现实6 小时前
调度系统部署架构是什么样的呢?
linux·运维·服务器·架构·集群队列·计算节点
小孙姐7 小时前
Linux-Day14.自动批量装机
linux·运维·服务器
卡比巴拉—林7 小时前
企业高性能 Web 服务部署实践(基于 RHEL 9)
运维·服务器
稚辉君.MCA_P8_Java8 小时前
常见通信协议详解:TCP、UDP、HTTP/HTTPS、WebSocket 与 GRPC
服务器·tcp/ip·http·https·udp
小任今晚几点睡8 小时前
防火墙环境下的全网服务器数据自动化备份平台搭建:基于 rsync 的完整实施指南
服务器·shell·rsync·自动化备份