Pjsip is an open source SIP protocol stack. It supports a wide range of SIP extensions and is arguably one of the most popular sip stacks. It implements SIP, SDP, RTP, STUN, turn, and ice. PJSIP provides a very clear API as well as NAT traversal capabilities as a SIP-based multimedia communication framework. Pjsip is very well-ported and supports almost all today's systems: from desktop systems to embedded systems to smartphones. Pjsip also supports voice, video, status rendering, and instant messaging.
Pjsip is very powerful, many VoIP voice video calling applications use it ...
Here's how to compile under Ubuntu.
Article directory [hide]
- Ubuntu Programming Environment
- Create a working directory
- Compiling yasm
- Compiling libX264
- Compiling ffmpeg
- Compiling SDL2.0
- Compiling PJSIP
Ubuntu Programming Environment
sudo apt-get install build-essential
If you want to checkout the source code in a git way
sudo apt-get install build-essential git-core
Create a working directory
Mkdir-p $HOME/workspace/voip
Mkdir-p $HOME/workspace/toolchain
CD $HOME/workspace/voip
compiling yasm
Download the source package:
Http://yasm.tortall.net/Download.html
./configure–prefix= $HOME/workspace/toolchain/yasm/
Make-j4
Make install
Adding YASM to environment variables
Export path= $HOME/workspace/toolchain/yasm/bin: $PATH
compiling libX264
Download Source Bundle: http://www.videolan.org/developers/x264.html
./configure–prefix= $HOME/workspace/toolchain/libx264/–enable-static–enable-shared
Make-j4
Make install
compiling ffmpeg
Download Source Bundle: Https://www.ffmpeg.org/download.html#releases
./configure–prefix= $HOME/workspace/toolchain/ffmpeg–enable-shared–disable-static–enable-memalign-hack– extra-cflags= "-i$home/workspace/toolchain/libx264/include" –extra-ldflags= "-l$home/workspace/toolchain/libx264/ Lib "–enable-gpl–enable-libx264
Make-j4
Make install
compiling SDL2.0
Download Source Bundle: http://www.libsdl.org/download-2.0.php
./configure–prefix= $HOME/WORKSPACE/TOOLCHAIN/SDL
Make-j4
Make install
compiling Pjsip
Download Source Bundle: http://www.pjsip.org/download.htm
./configure–prefix= $HOME/workspace/toolchain/pjsip–with-sdl= $HOME/workspace/toolchain/sdl/–with-ffmpeg= $HOME/ workspace/toolchain/ffmpeg/
Make-j4
Make install
original articles, reproduced please specify: reproduced from Wuchuanbin blog http://www.mr-wu.cn/
This article link address: VoIP applications compiled under Ubuntu 14.04 ffmpeg libX264 and Pjsip http://www.mr-wu.cn/ how-to-compile-ffmpeg-x264-and-pjsip-on-ubuntu-14-04-for-voip/
VoIP applications compiled under Ubuntu 14.04 ffmpeg libX264 and Pjsip