10

Is there a way to integrate SIP.js (both audio and video calling are needed) with React Native? Importing the library itself is easy enough, but the issues I'm running into are:

  • WebRTC support: instead of using the browser's WebRTC functionality (which isn't present in a react native app), I included react-native-webrtc, and modified SIP.js source code to use those. I got past WebRTC support errors, but I don't know if it actually works, because of the following issue.
  • Attaching media: SIP.js expects to attach the call audio and video to <audio> and <video> elements in the browser (https://sipjs.com/guides/attach-media). Is there an existing implementation of a bridge or similar solution to use react native components with SIP.js call media?
penguinrob
  • 1,431
  • 3
  • 17
  • 39
  • Have you find a solution. I am facing a similar problem? – Shubham1164 Apr 04 '19 at 07:59
  • 1
    @Shubham1164 Unfortunately not. I'm currently using this React Native PJSIP module, but it is far from perfect: https://github.com/datso/react-native-pjsip. – penguinrob Apr 05 '19 at 16:41
  • According to this thread ( https://groups.google.com/d/msg/sip_js/ZUP0FEZpz44/O8UoLAMtAgAJ ), a custom SIP.js session description handler would need to be created for React Native. – penguinrob Apr 05 '19 at 16:42
  • Did you find any solution yet? I have also made a webphone in jssip library and now looking for android and ios app to use jssip or sip.js . If you have any success, please respond. – Anup_Tripathi Aug 31 '19 at 15:58
  • @Anup_Tripathi Unfortunately not. If mobile web is an option for you, then according to the SIP.js FAQ, SIP.js does support the latest version of Safari on iOS and Chrome on Android. https://sipjs.com/faq/ – penguinrob Aug 31 '19 at 19:44
  • @penguinrob, After many research, I think I should wrap my code in Cordova to make Mobile Webphone. You can also try Cordova and share your findings. – Anup_Tripathi Sep 02 '19 at 10:32
  • Guys this repo is awesome I could connect my React Native app to the asterisk server via pjsip with this repo ...try the examples and see the magic https://github.com/telefon-one/react-native-sip2 – Mehdi Nourollah Jan 08 '21 at 17:58

0 Answers0