Установка
1. Определите CPU вашего сервера и выберите подходящий вариант:
cat /proc/cpuinfo | grep "model name" | head -1
# или через make-команду самого Asterisk:
cd /usr/src/asterisk-*; make show-build-cflags 2>/dev/null | grep march
2. Скачайте подходящий файл с зеркала и установите в каталог модулей Asterisk:
wget https://downloads.aasterisk.org/codecs/bin/codec_g729-ast220-gcc4-glibc-x86_64-core2.so
mv codec_g729-ast220-gcc4-glibc-x86_64-core2.so /usr/lib/asterisk/modules/codec_g729.so
chmod 755 /usr/lib/asterisk/modules/codec_g729.so
asterisk -rx "module load codec_g729.so"
3. Проверьте загрузку модуля:
asterisk -rx "core show translation" | grep g729
Для Asterisk 18+ имя файла должно содержать ast180, ast190, ast200, ast210 или ast220. Для 1.8 — ast18.
Сборка из исходников
Если не нашли готовый бинарь под вашу платформу:
wget https://downloads.aasterisk.org/codecs/src/asterisk-g72x-1.4.5.tar.bz2
tar xjf asterisk-g72x-1.4.5.tar.bz2
cd asterisk-g72x-1.4.5
# с bcg729 (только G.729):
apt install libbcg729-dev
./autogen.sh
./configure --with-bcg729
make
make install
Для лучшей производительности соберите с Intel IPP. Подробнее: README на bitbucket.
Installation
1. Detect your server's CPU and pick a matching binary:
cat /proc/cpuinfo | grep "model name" | head -1
# or check what Asterisk itself was built for:
cd /usr/src/asterisk-*; make show-build-cflags 2>/dev/null | grep march
2. Download the binary from our mirror and drop it into the Asterisk modules dir:
wget https://downloads.aasterisk.org/codecs/bin/codec_g729-ast220-gcc4-glibc-x86_64-core2.so
mv codec_g729-ast220-gcc4-glibc-x86_64-core2.so /usr/lib/asterisk/modules/codec_g729.so
chmod 755 /usr/lib/asterisk/modules/codec_g729.so
asterisk -rx "module load codec_g729.so"
3. Verify the module is loaded:
asterisk -rx "core show translation" | grep g729
For Asterisk 18+ the filename must contain ast180, ast190, ast200, ast210 or ast220. For 1.8 — ast18.
Building from source
If no prebuilt binary matches your platform:
wget https://downloads.aasterisk.org/codecs/src/asterisk-g72x-1.4.5.tar.bz2
tar xjf asterisk-g72x-1.4.5.tar.bz2
cd asterisk-g72x-1.4.5
# with bcg729 (G.729 only):
apt install libbcg729-dev
./autogen.sh
./configure --with-bcg729
make
make install
For best performance build against Intel IPP. See the README on bitbucket for details.