Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29876847 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Add call deflection api"

parents 0da07f2a 42ff79f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -838,7 +838,7 @@ public interface Phone {
    void hangupWithReason(int callId, String userUri,
            boolean mpty, int failCause, String errorInfo) throws CallStateException;

    void deflectCall(int callId, String number) throws CallStateException;
    void deflectCall(int connId, String number, Message response) throws CallStateException;

    /**
     * Clears all DISCONNECTED connections from Call connection lists. Calls
+1 −1
Original line number Diff line number Diff line
@@ -1544,7 +1544,7 @@ public abstract class PhoneBase extends Handler implements Phone {
                + this);
    }

    public void deflectCall(int callId, String number) throws CallStateException {
    public void deflectCall(int connId, String number, Message response) throws CallStateException {
        throw new CallStateException("deflectCall is not supported in this phone "
                + this);
    }
+2 −2
Original line number Diff line number Diff line
@@ -1311,8 +1311,8 @@ public class PhoneProxy extends Handler implements Phone {
        mActivePhone.hangupWithReason(callId, userUri, mpty, failCause, errorInfo);
    }

    public void deflectCall(int callId, String number) throws CallStateException {
        mActivePhone.deflectCall(callId, number);
    public void deflectCall(int connId, String number, Message response) throws CallStateException {
        mActivePhone.deflectCall(connId, number, response);
    }

    public int getSubscription() {