Carthage support for PJSIP (https://github.com/chebur/pjsip)
Add the following line to your Cartfile and run carthage update command.
github "devanshvyas/PJSIP-Carthage" ~> 1.0
- General -> Add Framework -> VideoToolBox
- Build Settings -> Enable Bitcode -> No
- Build Settings -> Preprocessor macros -> PJ_AUTOCONF=1
- Signing & Capabilities -> Background Modes -> Voice over IP
- Add following code in Info.plist:
<key>NSMicrophoneUsageDescription</key>
<string>To use microphone while calling</string>
<key>NSCameraUsageDescription</key>
<string>To use microphone while calling</string>
<key>UIBackgroundModes</key>
<array>
<string>voip</string>
</array>
VOIP-Demo (https://github.com/devanshvyas/VOIP-Demo)