背景
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.
編譯
下載推薦腳本:pjsip
git clone https://github.com/chebur/pjsip.git
將終端切換到腳本根目錄:
cd /path/to/your/pjsip/dir
開啟編譯之旅:
./build.sh
進(jìn)入刷屏模式:

image.png
編譯完成:

image.png
將編譯出來的庫整理如下:

image.png
如果你想使用官網(wǎng)的demo:
pjsua(pjsip-apps/src/pjsua/ios)則需要依賴:
openh264,openssl,opus否則編譯報(bào)錯(cuò)最后也是你們最關(guān)注的:
源碼:PJSIP
庫:2.6(支持armv7,armv7s,arm64,i386,x86_64)
官方demo:pjsua