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.
- Supported platforms: iOS 15+
- Supported architectures: arm64 (device), arm64 and x86_64 (simulator)
- Libraries are distributed as XCFrameworks (
build/xcframeworks), so the app can run on the simulator on Apple Silicon Macs - IPv6 support
- OpenSSL support provided by the OpenSSL-for-iPhone build script and the OpenSSL-Universal pod
- Video support provided by the OpenH264
- OPUS now supported - this pod provides libopus
Add the following line to your Podfile and run pod install command.
pod 'pjsip'
See example folder for integration example
- Make sure the full Xcode is selected (
sudo xcode-select -s /Applications/Xcode.app),xcodebuildis required to create the XCFrameworks. - Run
brew install cmake(needed to build bcg729). - Run build.sh.
- Drag the generated XCFrameworks (
build/xcframeworks) and headers files into your xcode project.
It turns out that building pjsip library for iOS is not a trivial task. Since pjsip binaries has to be rebuild from time to time to automate this work I've decided to create bash scripts and share my work with a community.
It's just my private initiative and I want to state this as clear as possible that this is not an official repository.
I've finished developing my pjsip application, thats why I'm no longer interested in supporting this repository. But I know there are some people which relies on it. They may have buildtime and runtime issues which I'm not able to debug and investigate.
If you are a kind of a person that have time and will to fix and update this build scripts, and experienced enough to debug issues, please send me your pull requests — you will be more than welcome.