onsip-cordova icon indicating copy to clipboard operation
onsip-cordova copied to clipboard

Try to receive call on iOS but not sure how

Open Rubinhuang9239 opened this issue 9 years ago • 5 comments

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!

Rubinhuang9239 avatar Oct 18 '15 20:10 Rubinhuang9239

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 avatar Oct 18 '15 21:10 lylepratt

@lylepratt Great, That cool, I'll try this. btw looking forward for it's video support. : )

Rubinhuang9239 avatar Oct 18 '15 22:10 Rubinhuang9239

@lylepratt So there is no way to receive a call on my iOS device with this onsip-cordova plugin currently?

Rubinhuang9239 avatar Oct 20 '15 08:10 Rubinhuang9239

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.

lylepratt avatar Oct 20 '15 12:10 lylepratt

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!

Rubinhuang9239 avatar Oct 27 '15 03:10 Rubinhuang9239