cordova-plugin-iosrtc: Call fail using latest sip.js in ionic app

YOU MUST read first!

Please use Community Forum for general technical discussions and questions.

  • I have used Google with the error message or bug in association with the library and Cordova words to make sure the issue Iā€™m reporting is only related to iOSRTC.
  • I have provided steps to reproduce (e.g. using sample app code https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample or updated extra/renderer-and-libwebrtc-tests.js file).
  • I have provided versions of third party library name, ios, Xcode and plugin version and adapter.js version if used.

Versions affected

  • Capacitor 3 iOS Platform version (15):
  • Plugin version (latest):
  • iOS version (e.g 15.0.1):
  • Xcode version (e.g13):
  • WebRTC Framework version (e.g. SIPJS 20):

Description

HI ,

our VOIP app (ionic 5 and capacitor) using sipjs v20 and there is many issues using webrtc with callkit (specially with audio stream locked by ios callkit)

I thought to use your plugin to produce my ios app version and adopt callkit with it .

I installed the plugin successfully , did global registration , enumerate devices and get media stream. my issues are : 1- since upgrade to ios 15 here is an issue with audio tracks (although i can get the input device) and i do think this is related to upgrade to v15 2- how can integrate your plugin with sipjs , I means should should i do the invite from spjs but get the stream and session description from your plugin ?? I need some clear examples about appropriate way to use the plugin with sipjs and also if the plugin is working with ios callkit

Thanks in advance , your help is really appreciated as I have been long time investigating with ios and webrtc

Marwa

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 28 (15 by maintainers)

Most upvoted comments

@RaddishIoW thx

Would be great if we can update the jssip/sip.js iosrtc example app (https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample) with this custom session Description handler thing.

See jssip example that you may duplicate for sip.js only that require to update www/index.html to use index-jssip.js instead of index-local.js

Index-jssip file for reference: https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample/blob/master/www/js/index-jssip.js

Like that I can test for regression on each release. In the past this sample worked for both depending what jsSipUrl value was (sip.js or jssip cdn url) because sip.js is a fork of the much more stable jssip, it had to broke when they updated, it was working for sip.js version 0.15.6 at the time.

Note: Edited for typos and better context and wording.

Thank you @MarwaAbuEssa,

May be we can mitigate that on cordova side somehow by updating iosrtc.

PR is welcome šŸ™ alternatively I might look at it next time I allocate time to iosrtc.

I will leave it open for now so it can be found more easily. I will hide non relevant comments and update titles to help issue context.