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

Commit 90b83aab authored by Suresh Kumar Sugguna's avatar Suresh Kumar Sugguna Committed by Steve Kondik
Browse files

IMS: start and stop dtmf tones

Support of start and stop dtmf tones in Imsphone

Change-Id: I9dec982035e8fdffcd198685caecceffb7e9f406
CRs-Fixed: 751797
parent 2d30c042
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -564,18 +564,18 @@ public class ImsPhone extends ImsPhoneBase {
    @Override
    public void
    startDtmf(char c) {
        if (!PhoneNumberUtils.is12Key(c)) {
        if (!(PhoneNumberUtils.is12Key(c) || (c >= 'A' && c <= 'D'))) {
            Rlog.e(LOG_TAG,
                    "startDtmf called with invalid character '" + c + "'");
        } else {
            sendDtmf(c);
            mCT.startDtmf(c);
        }
    }

    @Override
    public void
    stopDtmf() {
        // no op
        mCT.stopDtmf();
    }

    @Override
+24 −0
Original line number Diff line number Diff line
@@ -759,6 +759,30 @@ public final class ImsPhoneCallTracker extends CallTracker {
        }
    }

    /*package*/ void
    startDtmf(char c) {
        if (DBG) log("startDtmf");

        ImsCall imscall = mForegroundCall.getImsCall();
        if (imscall != null) {
            imscall.startDtmf(c);
        } else {
            loge("startDtmf : no foreground call");
        }
    }

    /*package*/ void
    stopDtmf() {
        if (DBG) log("stopDtmf");

        ImsCall imscall = mForegroundCall.getImsCall();
        if (imscall != null) {
            imscall.stopDtmf();
        } else {
            loge("stopDtmf : no foreground call");
        }
    }

    //***** Called from ImsPhoneConnection

    /*package*/ void