Skip to content

Instantly share code, notes, and snippets.

Last active May 28, 2021 05:04
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
FreePBX Asterisk 13 Install Opus Codec
# This is for x64 only
# To check x32 vs x64, run: getconf LONG_BIT
# Tested on Centos x64 - on a FreePBX Distro 13 x64
echo -------
echo This installs opus codec from the Digium website
echo -------
read -rsp $'Press any key to continue OR CTRL-c to QUIT ...\n' -n1 key
cd ~
tar -zxf codec_opus-13.0_1.1.0-x86_64.tar.gz && cd codec_opus-13.0_1.1.0-x86_64
cp /usr/lib64/asterisk/modules/
cp /usr/lib64/asterisk/modules/
cp codec_opus_config-en_US.xml /var/lib/asterisk/documentation/
# FOR x32 ONLY:
#axel -n 8
#tar -zxf codec_opus-13.0_1.1.0-x86_32.tar.gz && cd codec_opus-13.0_1.1.0-x86_32
#cp /usr/lib/asterisk/modules
#cp /usr/lib/asterisk/modules
#cp codec_opus_config-en_US.xml /var/lib/asterisk/documentation/
echo Restarting Asterisk server
service asterisk restart
echo Checking Asterisk transcoding support - waiting for Asterisk to finish restarting:
sleep 5
asterisk -rx 'core show translation'
echo -------
echo If you see opus above then both installed succesfully. Otherwise check the Asterisk log
echo -------
Copy link

This worked great, however can't find any info on the internet about how to make extensions like directory services and conferences work. I'm getting a translation error:

channel.c: Unable to find a codec translation path: (slin) -> (opus)

Asterisk 13.17.1
FreePBX 13

Copy link

reetp commented Feb 13, 2018

Probably better to use 'current' to get the latest release:


Except it extracts to 'codec_opus-13.0_$ver-x86_64' and not 'codec_opus-13.0_current-x86_64'


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment