===== ===== Installing Asterisk

Asterisk is not only a large program but also continues to grow by integrating more functionality each day. Its design and architecture is as powerful and flexible. Asterisk's flexibility also implies a certain complexity due to the numerous possibilities and options. The program is such a powerful tool that can probably do everything you can imagine, but the first steps are not easy. Learn how to configure Asterisk reminds me of those long nights of ten years ago before the screen trying to set the early versions of Apache web server or Sendmail. Asterisk can do so much that your challenge will be to learn to do well just a few.

The approach we are taking in this guide is a listing of all possible orders, but to walk through the description of three basic scenarios. The scenarios have been chosen to serve you reference in your own facilities. The examples, although basic, will allow the creation of more complex telephone systems. We decided to (intentionally) to simplify the settings to maximum. We realize that some of the examples can be solved in other ways, do not forget that you are free to experiment and explore yourself.

===== ===== Compiling Asterisk

Like any free program, there are two main ways to install it. The first method is to download the source code of the network and compile your own binary version. The second method is to download a version already compiled as a package.

If you choose to compile Asterisk from source the following tips may be helpful:

  * Download the source code of Asterisk http://www.asterisk.org 1)   * For a basic version does not need to download packages of “add ons” or “music.”   * To compile Asterisk from source is necessary to have a build environment on your system. Make sure you have these packages installed:

    * Bison (a parser generator)     * And zlibdevel zlib (compression library - development)     * Ncursesdev ncurses (console utility libraries development)     * Openssl and openssldev (libssldev) (SSL - development libraries)     * Libc6dev (headers and development libraries GNU C)     * Gcc and make (the C compiler and make utility)

Compiling Asterisk is not different from other open source software on Linux:

To compile:

<code> # make </ code>

To install:

<code> # make install </ code>

To install the startup scripts:

<code> # make config </ code>

To install the example configuration files:

<code> # make samples </ code>

To install the developer documentation:

progdocs <code> # make </ code>

If you want to use a Digium Wildcard ™ with Asterisk you need to compile and install a driver called zaptel (kernel module).

  * Download the source code of http://www.asterisk.org Zaptel. Unfortunately, the zaptel driver is not part of the core (kernel) for Linux and you have to create your own modules.   * Make sure the core of kernel headers (package kernelheaders) is installed on your system. 2)


  * Previous: What do I need?.   * Next : Download Asterisk   * Back to index.

1) As of September 2006, the latest stable version of Asterisk is 1.2.12. The latest driver for the family of cards is 1.2 Zapata .9.
2) You can check the kernel version / kernel for your machine using the command # uname a. For example if you are using a system with Ubuntu Dapper (x386) you have to install the following outdoor fountains package of headers: headers linuxheaders2.6.1525386
voip4d/capitulo_5/compilando_asterisk.txt · Last modified: 2011/05/20 03:21 by simonatkins
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki