You should compile Asterisk 11, so prepare your PC/server for it. Install development packages, get Asterisk 11 source, compile and install it.
Suppose you don’t want to install Asterisk 11 in your PC/server. You can configure and compile Asterisk 11, but don’t need to install it. After that you can continue compile the codec.
Now, assumed you have compiled Asterisk 11 and install it in /opt/asterisk on your PC/server.
Follow below steps to compile codec g723 and g729:
wget -c http://asterisk.hosting.lv/src/asterisk-g72x-1.1.tar.bz2 tar -jxf asterisk-g72x-1.1.tar.bz2 cd asterisk-g72x-1.1/ ./configure --with-asterisk-includes=/opt/asterisk/include --with-asterisk100 --enable-pentium4 --with-itu make cd .libs ls -l *.so
Copy codec_g723.so and codec_g729.so to your Asterisk 11 modules directory.
Should you use not a Pentium 4 compatible just replace –enable-pentium4 with your PC/server architecture. Get options by running ./configure –help in the codec source directory asterisk-g72x-1.1.
These are complete steps when you don’t want to install Asterisk 11 but need to compile the codec.
apt-get install build-essential wget -c http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz tar -zxf asterisk-11-current.tar.gz cd asterisk-11.4.0 ./configure --disable-xmldoc make cd ../ wget -c http://asterisk.hosting.lv/src/asterisk-g72x-1.1.tar.bz2 tar -jxf asterisk-g72x-1.1.tar.bz2 cd asterisk-g72x-1.1/ ./configure --with-asterisk-includes=../asterisk-11.4.0/include --with-asterisk100 --enable-pentium4 --with-itu make cd .libs ls -l *.so
錯誤:
autoreconf: failed to run aclocal: No such file or directory
解答:apt-get insatll automake
錯誤:
configure.ac:11: warning: macro `AM_PROG_LIBTOOL' not found in library
解答:apt-get install libtool
文件 | 大小 | 日期 | 附件上傳者 | |||
---|---|---|---|---|---|---|
codec_g729-asterisk12_cb1_armv7.so Copy to /usr/lib/asterisk/modules | 16.14 KB | 20:48, 11 Aug 2014 | alang | 動作 | ||
g729-asterisk11_raspbx_armv6l.zip G729 for RasPBX | 61.6 KB | 14:21, 14 Aug 2014 | alang | 動作 | ||
g729-module_show.png G729 on Cubieboard(1) | 64.83 KB | 19:02, 10 Aug 2014 | alang | 動作 | ||
g729-sip_show_channels.png G729 on Cubieboard(2) | 65.48 KB | 19:02, 10 Aug 2014 | alang | 動作 | ||
G729_running_on_RaspberryPi.png G729 running on Raspberry Pi(RasPBX) | 80.46 KB | 14:01, 14 Aug 2014 | alang | 動作 | ||
libbcg729.so.0 Copy to /lib | 129.06 KB | 20:48, 11 Aug 2014 | alang | 動作 |
Images 3 | ||
---|---|---|
G729 on Cubieboard(1)g729-module_show.png | G729 on Cubieboard(2)g729-sip_show_channels.png | G729 running on Raspberry Pi(RasPBX)G729_running_on_RaspberryPi.png |