Installation - PJSIP
The purpose of this tutorial is to show how to install PJSIP. PJSIP is an open source SIP client that can be installed on UEsim and function as a sip client on Amarisoft UEsim.
Table of Contents
- Installation - PJSIP
Create a directory
You can install the program in any existing directory, but I would recommend you to install it in a new distinctive directory.
You can specify anything you like as the name of the directory. In this tutorial, I created the directory named siptrunk under /root directory. (
Installation of AMR codec
We installed two packages related to AMR for PJSIP here. (
opencore-amr installation
Download the package from https://sourceforge.net/projects/opencore-amr/files/opencore-amr/ and put it in the installation package (/root/siptrunk in this tutorial). You may refer to https://trac.pjsip.org/repos/wiki/Using-OpenCORE-AMR-NB-WB-Codec for the document.
Uncompress the tarball and confirm the tarball is properly uncompressed.
Then move to the directory by uncompression (opencore-amr-0.1.6 in case of this tutorial) and run ./configure --prefix=/root/siptrunk
Then build the code and install with command 'make && make install'. (
You sould see some new files create during building and installation if the process went through properly.
If you move to the installation directory (/root/siptrunk in this ase), you will see that include and lib directory is created as well.
vo-amrwbenc installation
dowload vo-amrwbenc from https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/ and place it in the installation directory (/root/siptrunk in this case)
Uncompress the tarball.
Move to the uncompressed directory (vo-amrwbench-0.1.3 in this case)
Then run the configure program (./configure --prefix=/root/siptrunk)
build and install (make && make install) (
(Optional) move to the installation directory (/root/siptrunk in this case) and you will see the directories and files as shown below.
Check out the files in the /root/siptrunk/include an check if you have the subdirectories as shown below.
Installation of PJSIP
Now let's install the application PJSIP
Download the pjsip here https://www.pjsip.org/download.htm (
Place the downloaded file in the installation directory (/root/siptrunk in this case).
Uncompress the downloaded file.
Go to the unzipped directory and you will see the files and subdirectories as shown below.
Now run the configure program as shown below (./configure --with-opencore-amr=/root/siptrunk')
build the project with the command 'make dep && make clean && make'(
If the build process is properly done, you can move to the built directory (/root/siptrunk/pjproject-2.14.1/pjsip-apps/bin directory in this case). You would see the executable files as shown below.
Just to make it sure that the executable ./pjsua-x86-64-unknown-linux-gnu'.
If the executable is properly built, you will get the execution screen as shown below.
Now you can check if AMR codec is properly installed and associated with pjsip with Cp (Codec priorities) command as shown below. (