惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - vsignsoft

CentOS7 安装 mysql-8.0.25-el7-x86_64.tar.gz Apache Doris 编译 Tensorflow 模型保存与调用 制作 macOS Mojave 映像文件 编程实现文件重定向 openssh 免用户名/密码/服务器地址,登录远程服务器 解析 iOS crash 文件 私有地址与公网地址的转换 Supervisor 自动管理进程 使用 uWSGI 部署 Flask web 应用 安装 Flask macOS 上创建 Windows 兼容的 iso镜像文件 公式 X/N = int(H/N) * 65536 + [rem(H/N) * 65536 + L]/N 的运用 在VirtualBox 里安装纯DOS,进行汇编编程实践 Xcode 6、7 打包 苹果笔记本电脑,开不了机经验记录 CST时间转换成 yyyy-MM-dd格式 git 常规使用小结 XCode6 开发本地化应用
FreeSWITCH 增加模块 mod_ilbc
vsignsoft · 2018-12-07 · via 博客园 - vsignsoft

记录下,FreeSWITCH 增加模块 mod_ilbc 的过程;

遇到的问题有:

问题-1: 运行时,加载模块 mod_ilbc  时,报找不到 ilbc.so (mod_ilbc.so 依赖 ilbc.so )

问题-2: 客户端连接时,fs 报错不支持 ilbc codec

一、检查是否安装依赖库  ilbc

yum list ilbc2-devel 

如果未安装,安装上:yum -y install ilbc2-devel

确保安装了 ilbc 后,为了解决问题-1,将  ilbc2 所在的目录添加到配置文件里:

发现 ilbc 位于 /usr/lib64/ilbc2 目录下;

进入 /etc/ld.so.conf.d 目录下,新建文件 ilbc2-x86_64.conf

填入 ilbc 所在的路径,即:/usr/lib64/ilbc2 ,保存

执行 ldconfig 使修改生效

二、编译、安装

进入 mod_ilbc 源码所在目录,比如:/opt/src/freeswitch-1.8.2/src/mod/codecs/mod_ilbc

make

make install

这就将 mod_ilbc.so 安装上了

三、修改配置文件

修改配置文件 modules.conf.xml,支持自动加载 mod_ilbc:

比如:/etc/freeswitch/autoload_configs/modules.conf.xml

<load module="mod_ilbc"/>

为了解决问题-2,修改配置文件 vars.xml 支持 ilbc :

比如:/etc/freeswitch/vars.xml 增加 iLBC

<X-PRE-PROCESS cmd="set" data="global_codec_prefs=iLBC,OPUS,G722,PCMU,PCMA,VP8"/>

<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=iLBC,OPUS,G722,PCMU,PCMA,VP8"/>

至此,重启 fs 即可。

可见,配置文件都在 /etc/freeswitch 目录下;