Implement SIP for WebRTC on iOS

I am creating an iOS RTC application client. I am using google WebRTC iOS library. However, since WebRTC does not implement signaling, I am looking for a simple way to implement the SIP stack at the signal level. I tried Pjsip but this did not work:

  • Firstly, I followed this Pjsip guide Integrating third-party media stacks into the PJSUA-LIB , but I did not know how to do this, especially both projects have a lot of overlap (both implement NAT traversal and SDP). In addition, Pjsip is in C, WebRTC is in Obj-c, and the whole application will be in Swift.
  • Secondly, I created two separate projects, one for Pjsip and one for WebRTC, and both worked successfully on iOS. Then I tried to combine the two projects in one as the first step, but it turned out that both projects use libsrtp, but different versions, which caused conflicts and compiles errors.

I'm not sure if Pjsip is really what I need, especially since WebRTC already has all the features I need, except for SIP signaling. I would appreciate it if someone could help me how to continue working with Pjsip or provide me with another easy-to-use open source SIP library.

Thanks.

+5
source share
3 answers

I found a beautiful open source SIP library with a small size called libre .

0
source

You can use (and possibly contribute) to the RestComm iOS SDK at https://github.com/Mobicents/restcomm-ios-sdk . It uses the SIP stack in Sofia.

+1
source

I would consider signaling network sockets.

Take a look here: https://github.com/muaz-khan/WebRTC-Experiment

0
source

All Articles