Debian Etch + Asterisk 1.4 + H323 + G729 + G723
This tutorial will show you how to install Asterisk 1.4 with H323 Support + G729 and G723 Codec.
1) Installing necessary Debian packages before installing Asterisk
aptitude update
aptitude upgrade
aptitude install ssh ntp screen
aptitude install build-essential libcurl3-dev libvorbis-dev libspeex-dev unixodbc unixodbc-dev libiksemel-dev flex xsltproc linux-headers-`uname -r` g++ libncurses5-dev libnewt-dev libusb-dev subversion git-core flex bison
2) Get the stable release of Asterisk, Libpri and Zaptel
cd /usr/src
wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz
tar xvzf asterisk-1.4-current.tar.gz && tar xvzf zaptel-1.4-current.tar.gz && tar xvzf libpri-1.4-current.tar.gz && tar xvzf asterisk-addons-1.4-current.tar.gz tar
a) Installing Zaptel
cd /usr/src/zaptel-1.4*
./install_prereq test
./install_prereq install
./configure
make
make install
make config
modprobe ztdummy
b) Installing Libpri
cd /usr/src/libpri-1.4*
make && make install
c) Installing Asterisk
cd /usr/src/asterisk-1.4*
./configure
Comment: The next step is not mandatory. To install core and extra sounds in different languages:
make menuselect
Comment: Select the core-sounds you would like to play and extra sounds. Exit with “x” to save.
make
make install
make samples
make config
asterisk -vvvc
stop now
echo “ztdummy” >> /etc/modules
Note: If you make a mistake and/or the compilation fails, you need to run:
make clean
then
./configure
and
make install
again.
Reboot and test if the system startup is correct.
reboot
asterisk -r
exit
d) Installing Asterisk Addons
cd /usr/src/asterisk-addons*
./configure && make && make install
make samples
3) Installing H323 Support
//dirty hack to prevent error from missing file
cd /usr/include/linux
touch compiler.h
//PWLIB
cd /usr/src
wget http://kent.dl.sourceforge.net/sourceforge/openh323/pwlib-v1_10_0-src-tar.gz
tar zxvf pwlib-v1_10_0-src-tar.gz
cd pwlib_v1_10_0/
./configure
make && make install && make opt
PWLIBDIR=/usr/src/pwlib_v1_10_0 && export PWLIBDIR
//OpenH323
cd /usr/src
wget http://ovh.dl.sourceforge.net/sourceforge/openh323/openh323-v1_18_0-src-tar.gz
tar zxvf openh323-v1_18_0-src-tar.gz
cd openh323_v1_18_0/
./configure && make && make opt && make install
OPENH323DIR=/usr/src/openh323_v1_18_0/ && export OPENH323DIR
cd /usr/src/asterisk/channels/h323/
make && make opt
cd /usr/src/asterisk
./configure && make && make install
echo “/usr/local/lib” >> /etc/ld.so.conf && ldconfig
//or similar way
//cp /usr/local/lib/* /usr/lib
Binaries
• choose codec binary appropriate for your Asterisk version and CPU type, use x86_64 for 64-bit mode, scroll to the end of the list for FreeBSD binaries
• delete old codec_g729/723*.so files (if any) from /usr/lib/asterisk/modules directory
• copy new codec_g729/723*.so files into /usr/lib/asterisk/modules directory
• restart Asterisk
• check the codec is loaded with ‘core show translation recalc 10′ on Asterisk console (’show translation’ in Asterisk 1.2)
• G.723.1 send rate is configured in Asterisk codecs.conf file (Linux Asterisk 1.2, 1.4, 1.6, TRUNK and Callweaver, FreeBSD 7.x Asterisk 1.4 binaries only):
• [g723]
• ; 6.3Kbps stream, default
• sendrate=63
• ; 5.3Kbps
;sendrate=53
This option is for outgoing voice stream only. It does not affect incoming stream that should be decoded automatically whatever the bitrate is.
4) Installing G72X Codec (binary)
Go TO: http://asterisk.hosting.lv/
Debt Reduction…
hey great site….
Trackback by creditcardnegotiationinfo.com — July 23, 2008 @ 5:24 pm
very useful for me . goodluck
Comment by omid — November 11, 2008 @ 2:05 pm