Published Apr 23

How to Add bcg729 Codec to FreeSWITCH

This guide explains how to add the bcg729 codec to your FreeSWITCH server for ASTPP.

📥 Step 1: Download the Codec Module

To begin, download the precompiled mod_bcg729.so file using the command below:

wget https://www.fusionpbx.com/downloads/mod_bcg729.so

CopyEdit

 


📂 Step 2: Move the Module to the Correct Directory

Depending on your OS, move the downloaded file to the appropriate FreeSWITCH modules directory.

🔹 For Debian/Ubuntu:

bash

CopyEdit

cp mod_bcg729.so /usr/lib/freeswitch/mod/

🔹 For CentOS/RHEL:

bash

CopyEdit

cp mod_bcg729.so /usr/lib64/freeswitch/mod/


✅ Step 3: Verify the Module is in Place

Check that the mod_bcg729.so file has been successfully copied:

Debian:

bash

CopyEdit

ls -la /usr/lib/freeswitch/mod/

CentOS:

bash

CopyEdit

ls -la /usr/lib64/freeswitch/mod/


🔒 Step 4: Set Proper Permissions

Ensure the module file has the correct permissions:

bash

CopyEdit

cd /usr/lib64/freeswitch/mod/ # or /usr/lib/... on Debian chmod 755 mod_bcg729.so


⚙️ Step 5: Update FreeSWITCH Configuration

Edit the modules.conf.xml file to disable the default g729 module and enable bcg729.

bash

CopyEdit

vim /etc/freeswitch/autoload_configs/modules.conf.xml

Comment out mod_g729 and add mod_bcg729:

xml

CopyEdit

<!-- <load module="mod_g729"/> --> <load module="mod_bcg729"/>


🖥️ Step 6: Reload Modules via FreeSWITCH CLI

Log into the FreeSWITCH CLI:

bash

CopyEdit

fs_cli -p <your_password>

Then unload the old codec and load the new one:

bash

CopyEdit

unload mod_g729 load mod_bcg729


🔍 Step 7: Verify Codec is Active

Run the following command inside the FreeSWITCH CLI to confirm the codec is loaded:

bash

CopyEdit

show codecs

You should now see bcg729 listed among the active codecs.


✅ Done!

You've successfully added the bcg729 codec to your FreeSWITCH server. If you encounter any issues, refer to your FreeSWITCH logs or reach out via the ASTPP community channels.