Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android automatically declines second call #226

Open
ryanmcclure4 opened this issue Dec 21, 2020 · 0 comments
Open

Android automatically declines second call #226

ryanmcclure4 opened this issue Dec 21, 2020 · 0 comments

Comments

@ryanmcclure4
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant