Opus and VP8 Support for Asterisk

From KlavoWiki
Jump to navigationJump to search

I've installed the codec on an ARM system but I have not tested transcoding or passthrought.

  • Download and extract Asterisk source.
  • This example is based on Asterisk 13.9.1
  • Asterisk Source location is assumed to be /usr/src/asterisk-13.9.1

Download and install Opus

cd /usr/src
wget http://downloads.xiph.org/releases/opus/opus-1.1.2.tar.gz
tar xvf opus-1.1.2.tar.gz
cd opus-1.1.2
./configure
make
make install
make check

Download Asterisk/Opus Patch

cd /usr/src
git clone https://github.com/seanbright/asterisk-opus.git asterisk-13-git
cp asterisk-13-git/codecs/* /usr/src/asterisk-13.9.1/codecs/
cp asterisk-13-git/formats/* /usr/src/asterisk-13.9.1/formats/

Patch Asterisk Source

cd /usr/src/asterisk-13.9.1
patch -p1 < /usr/src/asterisk-13-git/asterisk.patch

Now complete the Asterisk build and install.

You should see codec_opus and format_vp8 selected for build and install if you run menuselect.