From fae2fd89c7d7e4b2fc832e5e24babe34b77a61fc Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Tue, 20 Sep 2022 11:01:41 +0800 Subject: [PATCH] =?UTF-8?q?Debian11=E4=B8=AD=E5=AE=89=E8=A3=85FreeSWITCH?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E9=87=8C=E6=B7=BB=E5=8A=A0g729=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- freeswitch/Debian11编译安装FreeSWITCH1.10.md | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/freeswitch/Debian11编译安装FreeSWITCH1.10.md b/freeswitch/Debian11编译安装FreeSWITCH1.10.md index 4293751..61f35a5 100644 --- a/freeswitch/Debian11编译安装FreeSWITCH1.10.md +++ b/freeswitch/Debian11编译安装FreeSWITCH1.10.md @@ -539,3 +539,30 @@ vim conf/autoload_configs/modules.conf.xml ``` 最后进入FreeSWITCH控制台`fs_cli`,在控制台中执行命令`load mod_python`,到此mod_unimrcp模块已经安装完成并在FreeSWITCH服务器生效。 + +### 添加mod_g729模块 + +> FreeSWITCH源码中的G729模块只能用在透传模式下,如果想要在非透传模式下使用G729编码,就需要手动安装第三方模块 + +通过git克隆源码,编译安装 + +```bash +cd /usr/src +git clone https://github.com/abaci64/mod_g729.git +cd mod_g729 +make +make install +``` + +进入FreeSWITCH配置文件修改modules.conf.xml配置 + +```xml + + +``` + +然后重新启动FreeSWITCH服务,即可以使用g729编码。 + +```shell +bgapi originate {ignore_early_media=true,absolute_codec_string=g729\,PCMA}sofia/gateway/[YOUR_GATEWAY]/[TARGET_PHONE] &echo +```