操作系统: CentOS7.9
FreeSWITCH: 1.10.7,已经源码编译
cd src/mod/codecs/mod_bcg729
git clone https://github.com/xadhoom/mod_bcg729.git
cd mod_bcg729
git clone https://github.com/BelledonneCommunications/bcg729.git
修改 ./bcg729/CMakeLists.txt,把 cmake_minimum_required(VERSION 3.22) 改成 cmake_minimum_required(VERSION 3.7.2)
修改 ./Makefile
FS_INCLUDES=/usr/local/freeswitch/include/freeswitch
FS_MODULES=/usr/local/freeswitch/mod
make && make install
大功告成
修改 autoload_configs/modules.conf.xml
<load module="mod_g729"/>
<load module="mod_bcg729"/>
bcg729 在 g729 模块之后再加载
dialplan 这样配置:
<application="export" data="absolute_codec_string=G729,PCMA,PCMU"/>
选中 mod_bcg729,不会选中 mod_g729
也可指定模块名称再加上编码,这样就不比纠结加载的先后顺序了。
<application="export" data="absolute_codec_string=mod_bcg.G729,PCMA,PCMU"/>
需要注意的是 G729 比较费 CPU,少用,慎用