tariq86 / rn-sip-app

React Native SIP App
66 stars 45 forks source link

Hang-up button coming instead of call receive button and UI related issue #21

Open sebubd10 opened 3 years ago

sebubd10 commented 3 years ago

After the SIP account register success, I made a SIP call, but the incoming call screen appearing a hang-up button instead of the incoming button.

After checking the , i found this code: const answerable = call.getState() == "PJSIP_INV_STATE_INCOMING"; return false, original value is call.getState() == PJSIP_INV_STATE_NULL. For testing, i manually add the answerable = true. after that incoming button is coming, but when i press the answer button the app is crashing.

I checked the log through adb logcat *:S ReactNative:V ReactNativeJS:V command.

after pressing the answer button no log to the console. Also, top of the header's icons are not showing, getting this error when I click the header button. undefined is not an object (evaluating '_this$props.tab')

image

Now, how can I receive the incoming call and fix the UI?

Thanks.