Versions Compared

Key

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

...

  1. A working knowledge of Linux, Subversion, and Asterisk.
  2. A Linux distribution.  This guide does not assume a lot has been installed on the machine in question; however, some things may be needed on your distribution that were already installed for this guide.  Use common sense here.
  3. Git is installed.
  4. SVN is installed (only needed for the 'PJSUA Installation' step).

Install Asterisk Prereqs

...

  1. Enter the following:

    Code Block
    bash
    bash
    $ mkdir sipp
    $ cd sipp
    $ wget https://github.com/SIPp/sipp/archive/v3.4.1.tar.gz
    $ tar -zxvf v3.4.1.tar.gz
    $ cd sipp-3.4.1
    $ ./configure --with-pcap --with-openssl
    $ sudo make install
    

    By default, sipp is installed in /usr/local/bin.  If you want it installed to /usr/bin, add '–prefix=/usr' to the configure command.

     

  2. Verify that sipp is installed and configured correctly:

    Code Block
    bash
    bash
    $ sipp -v
    
    SIPp v3.4.1-TLS-PCAP-RTPSTREAM ...
    
  3. When finished, return to the testsuite directory

    Code Block
    bash
    bash
    $ cd ../..
    

Anchor
pjsua_installation
pjsua_installation
PJSUA Installation

  1. Enter the following:

    Code Block
    bash
    bash
    $ svn co http://svn.pjsip.org/repos/pjproject/trunk pjproject
    $ cd pjproject
    $ ./configure CFLAGS=-fPIC
    $ cp pjlib/include/pj/config_site_sample.h pjlib/include/pj/config_site.h
    $ vim pjlib/include/pj/config_site.h
    
  2. in the vim console, hit i and insert the following:

    Code Block
    c
    c
    #define PJ_HAS_IPV6 1
    
  3. Hit Esc, then type :wq to save and exit vim
  4. Continue the pjsip build process:

    Code Block
    bash
    bash
    $ make dep
    $ make
    
  5. Copy the pjsua executable:

    Code Block
    bash
    bash
    $ sudo cp pjsip-apps/bin/pjsua-x86_64-unknown-linux-gnu /usr/sbin/pjsua
    
  6. Verify that pjsua executes:

    Code Block
    bash
    bash
    $ pjsua
    ...
    You have 0 active call
    >>>
    
  7. Enter q to exit
  8. Install pjsua Python bindings

    Code Block
    bash
    bash
    sudo make -C pjsip-apps/src/python install
    
  9. Return to the testsuite directory:

    Code Block
    bash
    bash
    $ cd ~/asterisk/testsuite
    

...