Once you’ve compiled and installed the zaptel
and libpri packages (if you need them), you can
move on to Asterisk. This section walks you through a standard
installation and introduces some of the alternative
make arguments that you may find useful. We’ll
also look at how you can edit the Makefile to
optimize the compilation of Asterisk.
Asterisk is compiled with gcc through the
use of the GNU make program. Unlike many other
programs, there is no need to run a configuration script for Asterisk.
To get started compiling Asterisk, simply run the following commands
version with your version of
Be aware that compile times will vary between systems. On a current-generation processor, you shouldn’t need to wait more than five minutes. At Astricon, someone reported successfully compiling Asterisk on a 133-MHz Pentium, but it took approximately five hours. You do the math.
make samples command
to install the default configuration files. Installing these files
(instead of configuring each file manually) will allow you to get your
Asterisk system up and running much faster. Many of the default values
are fine for Asterisk. Files that require editing will be explained in
If you already have configuration files installed in
/etc/asterisk/ when you run the
make samples command,
.old will be appended to the end of each of your current ...