PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal functionality into high level API that is portable and suitable for almost any type of systems ranging from desktops, embedded systems, to mobile handsets.For example,PJSIP can be used as BlackBerry 10 platform's third-party components for VOIP protocol communication.
First, you must to install linux system on your PC,such as Ubuntu.
1、Run below command to install required tools if you don't have. (E.g. svn 、git、jdk、gcc)
Command: sudo apt-get install git
sudo apt-get install subversion
sudo apt-get install g++
sudo apt-get install build-essential
sudo apt-get build-dep fcitx
sudo apt-get install yum
2、Use Browser to download BlackBerry IDE and SDK and install.
Blackberry SDK version : 10.1.0.4828
(Note:Currently using this, if you use Blackberry SDK version 10.2 to build the PJSIP,the resource import
will be error with missing some package)
Download URL : http://developer.blackberry.com/native/downloads/
3、Checkout PJSIP BB10 demo from below url
Command:git clonehttps://github.com/bobcripps/bb10-pjsipdemo.git
4、 Get the PJSIP source
Enter the path : cdbb10-pjsipdemo\pjbuildscripts\ (Checkout after step 3)
Command: ./getpjsource (spend some time)
5、Change the file below
Enter the path : cd pjsip-checkout/trunk/pjsip/include/pjsua-lib/
File to change: vi pjsua.h
Enter : Esc ,change to Command Model
Input : /PJSUA_SDP_SESS_HAS_CONN
Enter : Enter, to searchPJSUA_SDP_SESS_HAS_CONN value
Enter : i , change to Insert Model, set the value of PJSUA_SDP_SESS_HAS_CONN to 1
Enter : Esc ,change to Command Model
Input : :wq , save and quite
6、Source the bbndk environment file
Command: source $BBNDK_DIR/bbndk-env.sh
($BBNDK_DIR means the SDK installation directory path,and you'd better run this in your BB10 NDK directory)
7、Compile and build the sdkfiles
Enter the path : cd bb10-pjsipdemo\pjbuildscripts
Command: ./buildpjsip
8、 Put the upzip of sdkfiles zip file
Enter the path : cd \bb10-pjsipdemo\pjbuildscripts
Command: ./createsdkoverlay
9、the sdkfile.zip will be created in the bb10-pjsipdemo\pjbuildscripts when step 8 finished.