Extract the archive and read the text file titled "README"
This is the installation instructions given in that text file.
--- NEW INSTALLATIONS ---------------------------------------------------------
Ensure that your system contains a compatible compiler and development
libraries. Asterisk requires either the GNU Compiler Collection (GCC) version
3.0 or higher, or a compiler that supports the C99 specification and some of
the gcc language extensions. In addition, your system needs to have the C
library headers available, and the headers and libraries for ncurses.
There are many modules that have additional dependencies. To see what
libraries are being looked for, see ./configure --help, or run
"make menuselect" to view the dependencies for specific modules.
On many distributions, these dependencies are installed by packages with names
like 'glibc-devel', 'ncurses-devel', 'openssl-devel' and 'zlib-devel'
or similar.
So, let's proceed:
1) Read this README file.
There are more documents than this one in the doc/ directory. You may also
want to check the configuration files that contain examples and reference
guides. They are all in the configs/ directory.
2) Run "./configure"
Execute the configure script to guess values for system-dependent
variables used during compilation.
3) Run "make menuselect" [optional]
This is needed if you want to select the modules that will be compiled and to
check dependencies for various optional modules.
4) Run "make"
Assuming the build completes successfully:
5) Run "make install"
If this is your first time working with Asterisk, you may wish to install
the sample PBX, with demonstration extensions, etc. If so, run:...........
***********************
I hope you know what you are doing because asterisk comes with multiple warning about setting up a proper security, and security is important for any server.