Asterisk already supports iLBC 30. This patch adds iLBC 20. Now, Asterisk defaults to iLBC 20 but falls back to iLBC 30, when the remote party requests this.
The patch was built on top of Asterisk 13.10. If you use a newer version and the patch fails, please, report!
cd /usr/src/
wget downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar zxf ./asterisk*
cd ./asterisk*
sudo apt-get --assume-yes install build-essential libssl-dev libncurses-dev libnewt-dev libxml2-dev libsqlite3-dev uuid-dev libjansson-dev libblocksruntime-dev
Apply all patches:
wget github.com/traud/asterisk-ilbc/archive/master.zip
unzip -qq master.zip
rm master.zip
cp --verbose --recursive ./asterisk-ilbc*/* ./
patch -p0 <./codec_ilbc.patch
Compile and install:
make
sudo make install
You can test iLBC 20 with
- Symbian/S60, since 3rd Edition Feature Pack 2, like Nokia N79
- Nokia Series 40, since Platform Release 9 with 3G (UMTS, HSPA), like Nokia C3-01
- Asha Software Platform, like Nokia Asha 501
- (iOS) Acrobits Groundwire
- (Windows Phone) Zoiper
However instead, please, consider Opus, AMR-WB, or AMR.
- Asterisk team: Thanks to their efforts and architecture the changes were done in one working day.
- Rob Gagnon provided the starting point with his patch.