datso / react-native-pjsip

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

[Android] App crashes answerCall (Permissions granted) #209

Open tobiasgoncalvespires opened 4 years ago

tobiasgoncalvespires commented 4 years ago

When i do: endpoint.answerCall(call); The app crashes, below the logcat Voip.txt

I add the RECORD_AUDIO permissions in AndroidManifest.xml, and test with: test_permission.txt

I test react-native-audio-record too, it works. I test using the emulador and my smartphone android, and the behaviour is the same.

what can be my problem?

csranasinghe commented 4 years ago

@tobiasgoncalvespires Did you grant the microphone permissions from the phone settings app permissions?

tobiasgoncalvespires commented 4 years ago

@tobiasgoncalvespires Did you grant the microphone permissions from the phone settings app permissions?

Yes. In the same app i use "react-native-audio-record" to record audio and use "https://www.npmjs.com/package/react-native-sound" to reproduce, and works well!