onsip / onsip-cordova

Other
48 stars 29 forks source link

Try to receive call on iOS but not sure how #22

Open Rubinhuang9239 opened 8 years ago

Rubinhuang9239 commented 8 years ago

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: 'name@domain.com', authorizationUser: 'authUserName', password: '*****' });

Thanks!

lylepratt commented 8 years ago

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

Rubinhuang9239 commented 8 years ago

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

Rubinhuang9239 commented 8 years ago

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

lylepratt commented 8 years ago

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.

Rubinhuang9239 commented 8 years ago

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!