react-native-pjsip icon indicating copy to clipboard operation
react-native-pjsip copied to clipboard

Android automatically declines second call

Open ryanmcclure4 opened this issue 5 years ago • 0 comments

If a user is currently on a call on Android and they receive a secondary inbound call, the secondary call is automatically declined as per the following line:

void emmitCallReceived(PjSipAccount account, PjSipCall call) {
        // Automatically decline incoming call when user uses GSM
        if (!mGSMIdle) {
            try {
                call.hangup(new CallOpParam(true));
            } catch (Exception e) {
                Log.w(TAG, "Failed to decline incoming call when user uses GSM", e);
            }
            return;
        }
        ...
}

On the other hand, iOS is able to receive multiple calls just fine. Why is this code here for Android? Is the Android module incomplete and this catch was just placed here in the meantime?

ryanmcclure4 avatar Dec 21 '20 17:12 ryanmcclure4