Skip to content

Instantly share code, notes, and snippets.

@fagnersilva
Created July 20, 2016 20:26
Show Gist options
  • Save fagnersilva/68708d9707c749650e156e5d895db9b2 to your computer and use it in GitHub Desktop.
Save fagnersilva/68708d9707c749650e156e5d895db9b2 to your computer and use it in GitHub Desktop.
Install pjproject
Next you will download and install the pjproject sip library directly from pjsip.org. But first we’ll change directories to work in the /usr/src directory.
# cd /usr/src
# wget http://www.pjsip.org/release/2.3/pjproject-2.3.tar.bz2
# tar -jxvf pjproject-2.3.tar.bz2
This will create the pjproject-2.3 directory. Change to this directory and run the following set of commands to build and install the pjproject sip library.
# cd pjproject-2.3
# ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --prefix=/usr --libdir=/usr/lib64 --enable-shared --disable-video --disable-sound --disable-opencore-amr
This command must be modified when using a 32-bit operating system. Just remove the --libdir=/usr/lib64 option from the command. The other options may be different depending on how you want to use Asterisk. More information about these options can be found on the Asterisk wiki or by running the command ./configure --help. The next four commands will build, install and link the pjsip libraries.
# make dep
# make
# make install
# ldconfig
And finally this next command will verify the pjsip libraries have been dynamically linked.
# ldconfig -p | grep pj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment