1-What Packages Do I Need?
Asterisk uses three main packages: the main Asterisk program (asterisk), the Zapata telephony drivers (zaptel), and the PRI libraries (libpri). If you plan on a pure VoIP network, the only real requirement is the asterisk package.
• Asterisk uses three main packages:• asterisk
• zaptel
• libpri
• Compile Requirements:
• GCC (version 3.x or later)
• Kernel source
• Kernel headers
• bison
• openssl, openssl-dev, libssl-dev
• libnewt
2-Obtaining the Source Code
The Asterisk source code can be obtained from the Digium FTP server, located at ftp://
ftp.digium.com. The easiest way to obtain the stable release is through the use of the
program wget.Note that we will be making use of the /usr/src/ directory to extract and compile the Asterisk source. Also be aware that you will need root access to write files to the /usr/
src/ directory and to install Asterisk and its associated packages.
To obtain the latest stable source code via wget, enter the following commands on
the command line:
# cd /usr/src/ftp.digium.com. The easiest way to obtain the stable release is through the use of the
program wget.Note that we will be making use of the /usr/src/ directory to extract and compile the Asterisk source. Also be aware that you will need root access to write files to the /usr/
src/ directory and to install Asterisk and its associated packages.
To obtain the latest stable source code via wget, enter the following commands on
the command line:
# wget -–passive-ftp ftp.digium.com/pub/asterisk/asterisk-1.*.tar.gz
# wget -–passive-ftp ftp.digium.com/pub/asterisk/asterisk-sounds-*.tar.gz
# wget -–passive-ftp ftp.digium.com/pub/zaptel/zaptel-*.tar.gz
# wget -–passive-ftp ftp.digium.com/pub/libpri/libpri-*.tar.gz
3-Extracting the Source Code
This is a simple process that can be achieved through the use of the following commands:
# cd /usr/src/
# tar zxvf zaptel-*.tar.gz
# tar zxvf libpri-*.tar.gz
# tar zxvf asterisk-*.tar.gz
# tar zxvf asterisk-sounds*.tar.gz
These commands will extract the packages and source code to their respective directories.
http://examples.oreilly.com/9780596009625/openbook/ch03.pdf
0 comments:
Post a Comment