Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open a terminal and enter the following (replace <user_name> with your gerrit user name):

    Code Block
    bash
    bash
    $ mkdir -p ~/asterisk/src
    $ cd ~/asterisk/src
    $ git clone https://gerrit.asterisk.org/asterisk
    $ cd contrib
    $ cd scripts
    $ sudo ./install_prereq install
    
  2. This will typically install a large number of Asterisk prerequisites. When it is finished, you should see:

    Code Block
    none
    none
    ######################################
    ## install completed successfully
    ######################################
    
    Info

    As of the time writing this, install_prereq does not install the SQLite3 package. If the Asterisk ./configure script fails, install sqlite-devel

  3. Perform the following:

    Code Block
    bash
    bash
    $ cd ../../
    $ ./configure --enable-dev-mode
    $ make
    $ sudo make install
    $ asterisk -cvvvg
    
  4. Verify that Asterisk starts. On the Asterisk CLI, enter:

    Code Block
    none
    none
    CLI> core stop now
    
    Note

    If installing Asterisk as a non-root user, Asterisk may not be able to find libasteriskssl.so.1. Verify that the shared library was built and in /usr/lib. If it is, activate the current library path by entering "sudo ldconfig"

...

Check out the Asterisk Test Suite by doing the following (replace <user_name> with your gerrit user name):

Code Block
bash
bash
$ mkdir -p ~/asterisk/testsuite
$ cd ~/asterisk/testsuite
$ git clone https://gerrit.asterisk.org/testsuite

...