- FreeSWITCH
主程序目录:/app/rainbow/freeswitch/
录音文件:/app/rainbow/data/recordings/
应用程序目录:/app/rainbow/webapps/
四、安装流程简述
- 安装gcc编译器
源码安装需要使用c、c++编译器,执行:yum install gcc gcc-c++,当前服务器已自带gcc8.2,执行:yum install gcc-c++
- 安装sofia-sip和spandsp
由于FreeSwitch-1.10.x某个版本将sofia-sip和spandsp模块分离了,所以在安装freeswitch前需要单独编译安装这两个模块,否则会提示:
checking for spandsp >= 3.0… configure: error: no usable spandsp; please install spandsp3 devel package or equivalent
checking for sofia-sip-ua >= 1.xx.xx… configure: error: no usable sofia-sip; please install sofia-sip-ua devel package or equivalent
- 安装FreeSWITCH
五、编译安装步骤
- 安装包上传
(1)将freeswitch、sofia-sip、spandsp三个模块的源码包解压到/app/package/source/目录下,如下所示:
- 安装sofia-sip模块
(1)进入目录:cd sofia-sip-1.13.8
(2)编译:./bootstrap.sh
如执行后提示**autoreconf:command not found,**见问题附录一处理后再继续。
(3)编译:./configure
(4)安装:make
如执行后提示**openssl/ssl.h:No such or directory,**见问题附录二处理后再继续。
(5)安装:make install
- 安装spandsp模块
(1)进入目录:cd spandsp-master/
(2)编译:./bootstrap.sh
(3)编译:./configure
如执行后提示configure: error: “Cannot build without libtiff (does your system require a libtiff-devel package?)”,见问题附录三处理后再继续。
如执行后提示configure: error: “Cannot build without libtiff (does your system require a libjpeg-devel or libjpeg-turbo-devel package?)”,见问题附录四处理后再继续。
(4)安装:make
(5)安装:make install
- 安装freeswitch模块
(1)在完成上述前置模块的安装后,执行如下命令重载库缓存配置和环境变量:
ldconfig
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
(1)进入目录:cd freeswitch-1.10.7/
(2)编译:./bootstrap.sh
(3)编译:./configure
如需指定安装目录和文件结构编译:
./configure --prefix=/app/rainbow/freeswitch --disable-fhs
如执行后提示configure: error: Library requirements (sqlite3 >= 3.6.20) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.,见问题附录五处理后再继续。
如执行后提示configure: error: Library requirements (libcurl >= 7.19) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.