Prerequisites
- A working knowledge of Linux, Subversion, and Asterisk.
- 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.
- SVN is installed
Install Asterisk Prereqs
In order to make sure that all of the current Asterisk prerequisites are installed and set up, we will first check-out Asterisk and make sure that we can build and run Asterisk outside of the control of Bamboo.
Open a terminal and enter the following:
This will typically install a large number of Asterisk prerequisites. When it is finished, you should see:
Perform the following:
Verify that Asterisk starts. On the Asterisk CLI, enter:
Third Party Libraries
Install spandsp
For fax support, you'll need spandsp.
Install libtiff
- Download the spandsp source from http://soft-switch.org/downloads/spandsp. Pick a recent revision.
Assuming that you downloaded it to Downloads (we'll assume that this is spandsp-0.0.6):
Install libsrtp
For SRTP, you'll need libsrtp. To obtain that library, perform the following:
Install Asterisk Test Suite Prereqs
Check out the Asterisk Test Suite by doing the following:
With the Test Suite checked out, we can begin to install its various prerequisites.
ASTTest Installation
Enter the following:
Verify that asttest was installed by doing the following:
When finished, return to the Test Suite directory:
Third Party Libraries
The following needs to be installed:
- lua-devel
- lua
- python-twisted
- libpcap-devel
- python-yaml
StarPY Installation
StarPY is used as a wrapper around AMI for a large number of tests. It depends on Python twisted, which a number of the tests use as well.
Perform the following:
When finished, return to the testsuite directory:
SIPp Installation
For SIPp, we'll need to download the source and build it ourselves, as we'll want both pcap and openssl support. The current minimum version required is 3.4.1.
Enter the following:
By default, sipp is installed in /usr/local/bin. If you want it installed to /usr/bin, add '–prefix=/usr' to the configure command.
Verify that sipp is installed and configured correctly:
When finished, return to the testsuite directory
PJSUA Installation
Enter the following:
in the vim console, hit i and insert the following:
- Hit Esc, then type :wq to save and exit vim
Continue the pjsip build process:
Copy the pjsua executable:
Verify that pjsua executes:
- Enter q to exit
Install pjsua Python bindings
Return to the testsuite directory:
Verify the Test Suite
Enter the following:
- Verify that the tests are listed out, and that the required dependencies (that you care about, anyway) are true.