首页 > 系统相关 >centos 7无需token编译安装freeswitch 1.10.11 ——筑梦之路

centos 7无需token编译安装freeswitch 1.10.11 ——筑梦之路

时间:2024-06-17 22:58:49浏览次数:16  
标签:11 1.10 centos devel yum install freeswitch root mod

准备工作

安装编译工具和依赖包

yum update -y
sudo yum install epel-release vim tcpdump net-tools.x86_64 -y
sudo yum install gcc-c++ sqlite-devel zlib-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel openssl-devel git -y
yum install yasm nasm opus-devel -y
yum groupinstall perl* -y
yum install python -y
yum install bzip2 -y
yum install -y libshout-devel lame-devel libmpg123-devel
yum install bc -y
yum install curl -y
yum install expect telnet -y
yum install -y unixODBC unixODBC-devel mysql-connector-odbc
yum install -y yum-plugin-ovl centos-release-scl rpmdevtools yum-utils git wget vim devtoolset-7-gcc* devtoolset-7 libtiff-devel cmake3 libatomic unixODBC unixODBC-devel.x86_64 postgresql-libs postgresql-devel libpqxx-devel
yum install -y gcc-c++ autoconf automake libtool ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel

reboot

拉取freeswitch源码

cd /root

git clone --branch v1.10.11 https://github.com/signalwire/freeswitch.git

编译安装sofia-sip模块

cd /root/freeswitch

git clone https://github.com/freeswitch/sofia-sip
cd sofia-sip

./bootstrap.sh -j
./configure
make
make install
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}

ldconfig

编译安装spandsp模块

cd /root/freeswitch

git clone https://github.com/freeswitch/spandsp.git

cd spandsp

./bootstrap.sh -j

./configure

make
make install
ldconfig

注意:该步骤如果按照上面,后面编译freeswitch的时候会报错

mod_spandsp_dsp.c:159:10: error: ‘V18_MODE_5BIT_4545’ undeclared (first use in this function)

正确步骤如下:

 
git clone https://github.com/freeswitch/spandsp.git
cd spandsp
git checkout -b finecode20230705 0d2e6ac65e0e8f53d652665a743015a88bf048d4
 
./bootstrap.sh -j
./configure
make
make install

参考资料:FreeSwitch 1.10.9 在CentOS7.9编译spandsp,V18_MODE_5BIT_4545错误_spandsp编译-CSDN博客https://www.cnblogs.com/zhongqifeng/p/15688517.html

设置要启用的模块

cd /root/freeswitch

./bootstrap.sh

sed -i 's/#formats\/mod_shout/formats\/mod_shout/g' /root/freeswitch/modules.conf

sed -i 's/applications\/mod_signalwire/#applications\/mod_signalwire/g' /root/freeswitch/modules.conf

sed -i 's/endpoints\/mod_verto/#endpoints\/mod_verto/g' /root/freeswitch/modules.conf

sed -i 's/applications\/mod_av/#applications\/mod_av/g' /root/freeswitch/modules.conf

sed -i 's/codecs\/mod_opus/#codecs\/mod_opus/g' /root/freeswitch/modules.conf

sed -i 's/#applications\/mod_callcenter/applications\/mod_callcenter/g' /root/freeswitch/modules.conf

sed -i 's/#applications\/mod_httapi/applications\/mod_httapi/g' /root/freeswitch/modules.conf

sed -i 's/#event_handlers\/mod_odbc_cdr/event_handlers\/mod_odbc_cdr/g' /root/freeswitch/modules.conf

编译安装freeswitch

./bootstrap.sh

./configure --enable-portable-binary --prefix=/usr/local/freeswitch --with-gnu-ld --with-python --with-openssl --enable-core-odbc-support --enable-zrtp
make
make install

make -j cd-sounds-install
make -j cd-moh-install

官方语音包下载地址:Index of /releases/sounds

设置软链接和开机启动

sudo ln -sf /usr/local/freeswitch/bin/freeswitch /usr/local/bin/
sudo ln -sf /usr/local/freeswitch/bin/fs_cli /usr/local/bin/
cp -r /usr/local/freeswitch/bin/freeswitch /etc/rc.d/init.d
echo -e "/etc/init.d/freeswitch -nonat -nc" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local

FAQ

以下记录下出现频率比较高的报错信息和相应解决办法,并不一定适用当前这篇。

1. checking for spandsp >= 3.0... configure: error: no usable spandsp; please install spandsp3 devel package or equivalent

Install OKey repository:
yum install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm

Install cheese repository:
yum install http://www.nosuchhost.net/~cheese/fedora/packages/epel-7/x86_64/cheese-release-7-1.noarch.rpm

yum install -y spandsp3
yum install -y spandsp3-devel

 2. checking for sofia-sip-ua >= 1.13.6... configure: error: no usable sofia-sip; please install sofia-sip-ua devel package or equivalent

yum install -y sofia-sip
yum install -y sofia-sip-devel

参考资料:

在CentOS7.9系统内安装目前最新版本FreeSWITCH 1.10.11

FreeSWITCH_1.10.11源码安装(centos7)_freeswitch v1.10.11安装-CSDN博客

https://www.cnblogs.com/aowind/p/15655308.html

标签:11,1.10,centos,devel,yum,install,freeswitch,root,mod
From: https://blog.csdn.net/qq_34777982/article/details/139728689

相关文章

  • 北京大学数字普惠金融指数(2011-2022年)
    北京大学数字普惠金融指数(2011-2022年),包含省市县三级数据数据年限:省级、地级市(2011-2022年);区县(2014-2022年)数据格式:excel、pdf数据来源:北京大学数字金融研究中心,原始数据(英文抬头)数据内容:指标体系包括总指数、覆盖广度(一级指标)、使用深度(一级指标)、支付业务(二级指标)......
  • (11.3)iic串口读写EEPROM实验:程序设计
    一、实验任务二、架构框图其中:i2c驱动模块: bit_ctrl:0代表发送8位字节地址;1代表发送16位字节地址(本实验采用)i2c_addr[15:0]:16位字节地址,当bit_ctrl为0时只有低8位是有效的i2c_data_w[7:0]:向EEPROM写入的8位数据i2c_exec:拉高代表当前进行......
  • nl80211
    同wpa_supplicant、hostapd一样,nl80211也可以管理无线网络,不同的是wpa_supplicant和hostapd是通过nl80211管理无线网络。 Linux平台上目前常用的专门针对无线网络设备编程的API有两套最早的一套API由HP公司员工JeanTourrilhes于1997年开发,全称为LinuxWirelessExt......
  • C++11智能指针 unique_ptr、shared_ptr、weak_ptr与定制删除器
    目录智能指针场景引入-为什么需要智能指针?内存泄漏什么是内存泄漏内存泄漏的危害内存泄漏分类如何避免内存泄漏智能指针的使用及原理RAII简易例程智能指针的原理智能指针的拷贝问题智能指针的发展历史std::auto_ptr模拟实现auto_ptr例程:这种方案存在的问题:Boost库中的智能指针......
  • 无线局域网协议 --- IEEE 802.11
    IEEE(InstituteofElectricalandElectronicsEngineers)是美国电气和电子工程师协会的简称。802是该组织中一个专门负责制定局域网标准的委员会,也称为LMSC(LAN/MANStandardsCommittee,局域网/城域网标准委员会)。该委员会成立于1980年2月,其任务就是制定局域网和城域网标准。由于......
  • Android 11 禁止从SD卡上安装第三方应用
    找到负责安装app的类:./frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java修改日志变量,打印日志,顺着日志看流程:publicstaticfinalbooleanDEBUG_INSTALL=true;05-2809:12:12.46241234184IPackageManager:init_copy:Install......
  • 从11个视角看全球Rust程序员2/4:深度解读JetBrains最新报告
    讲动人的故事,写懂人的代码5Rust代码最常使用什么协议与其他代码交互?RESTAPI:2022年:51%2023年:51%看上去RESTAPI的使用比例挺稳定的,没啥变化。语言互操作性(LanguageInterop):2022年:53%2023年:43%语言互操作性的比例在2023年下来了一些,掉了10个百分点。远......
  • 从11个视角看全球Rust程序员1/4:深度解读JetBrains最新报告
    讲动人的故事,写懂人的代码五个月前,编程界的大佬JetBrains发布了他们的全球开发者年度报告。小吾从这份报告中找出了下面11个关于全球程序员如何使用Rust的有趣的趋势,让你学习和使用Rust更轻松。1这两年有多少程序员在工作中使用了Rust?2全球程序员使用Rust有多久了?3......
  • 【实际应用-第一篇 window内容 vmware、centos、xshell、xftp下载及安装】
    文章目录概要vmware安装centos7安装xshell安装xftp安装完结撒花......
  • 【实际应用-第六篇 centos 安装nacos 并设置开机自启 】
    文章目录关联文章概要1、下载2、挪到服务器、解压3、启动、验证4、配置系统服务5、刷新服务、启动、查看状态、设置开机自启6、重启验证完结撒花......