onsip-cordova
onsip-cordova copied to clipboard
Try to receive call on iOS but not sure how
Hi guys, I'm trying to use sipjs-cordova to build an Cordova App to Cordova App Webrtc communication, just tryout the call from App to Browser and it looks great.
But when I tried assign my uri, authUsername and password to my App it seems not working anymore. I'm not sure if my code is on the right way to do that.
//------New_SIP.UA------//
window.ua = new SIP.UA({ mediaHandlerFactory: PhoneRTCMediaHandler, traceSip: true, displayName: 'myDisName', uri: '[email protected]', authorizationUser: 'authUserName', password: '*****' });
Thanks!
Another option for getting SIP.js working on iOS just in case you continue to have problems. We use this in production: https://github.com/BetterVoice/iOS-SIP.js
@lylepratt Great, That cool, I'll try this. btw looking forward for it's video support. : )
@lylepratt So there is no way to receive a call on my iOS device with this onsip-cordova plugin currently?
Which plugin are you asking about? The one in this repo? If so, you can receive calls while the app is open, but not while it is backgrounded.
Sorry for the late reply. Yeah! I'm asking about the one in this repo, I tried to setup my URI, authorizationUser and password in the code I posted at the beginning, but then I can't make a call nor receive a call. would you mind to provide any example for setting URI with this cordova plugin? Thx!