datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
272 stars 229 forks source link

Can't get PJSIP_INV_STATE_CONFIRMED on ios device #113

Open johnfree02 opened 6 years ago

johnfree02 commented 6 years ago

Hi all,

I got problem, app can't get PJSIP_INV_STATE_CONFIRMED on ios device with incoming call On logs, It's ok with simulator, Android, but i got "PJSIP_INV_STATE_INCOMING" -> "PJSIP_INV_STATE_CONNECTING". Call can connected but it will be request time out after 10-15seconds.

=> When i call hangup with that call, it can be terminated.

Do you have anythings with my problem ?

johnfree02 commented 6 years ago

I traced log ios -> Found out that : Error 18:32:42.677 coreaudio_dev.c ......Using VoiceProcessingIO audio unit 18:32:42.743 pjsua_aud.c .....Unable to open sound device: Unknown error 506637 [status=506637] 18:32:42.743 pjsua_aud.c ....Error opening sound device: Unknown error 506637 [status=506637] 18:32:42.743 pjsua_aud.c ...Conf connect: 0 --> 1 18:32:42.743 pjsua_aud.c ....Set sound device: capture=-1, playback=-2 18:32:42.743 pjsua_aud.c .....Opening sound device (speaker + mic) PCM@16000/1/20ms

Anyone has any to resolve my problem ? Thanks

johnfree02 commented 6 years ago

Upated : It's not reason of my case. I resolved the problem Can't open sound device .

But i still can get CONFIRMED

rohitvc commented 5 years ago

@johnfree02 Can you explain your approach on how you managed to make it work ? I am facing the same issue on IOS Device :- iPhone 6, IOS 12.4.1

There are already tickets related to this https://github.com/datso/react-native-pjsip/issues/85#issuecomment-527133788

Fix for this added in 2017 as per #42 but still i am getting same error.

The error seems to unpredictable and does not occur all the time. It fails to open Sound device randomly. @datso can you please help ?

Thanks.