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

Commit b8bfa419 authored by Radhika Agrawal's avatar Radhika Agrawal Committed by Gerrit Code Review
Browse files

Merge "Add rtp silence detection and inactivity detection to call quality...

Merge "Add rtp silence detection and inactivity detection to call quality metrics in telephony .proto"
parents 44aede06 14996b2b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2205,6 +2205,18 @@ message TelephonyCallSession {

      // the codec type of an ongoing call
      optional AudioCodec codec_type = 11;

      // true if no incoming RTP is received for a continuous duration of 4 seconds
      optional bool rtp_inactivity_detected = 12;

      // true if only silence RTP packets are received for 20 seconds immediately
      // after call is connected
      optional bool rx_silence_detected = 13;

      // true if only silence RTP packets are sent for 20 seconds immediately
      // after call is connected
      optional bool tx_silence_detected = 14;

    }

    message CallQualitySummary {
+3 −0
Original line number Diff line number Diff line
@@ -2079,6 +2079,9 @@ public class TelephonyMetrics {
            cq.averageRelativeJitterMillis = callQuality.getAverageRelativeJitter();
            cq.maxRelativeJitterMillis = callQuality.getMaxRelativeJitter();
            cq.codecType = convertImsCodec(callQuality.getCodecType());
            cq.rtpInactivityDetected = callQuality.isRtpInactivityDetected();
            cq.rxSilenceDetected = callQuality.isIncomingSilenceDetected();
            cq.txSilenceDetected = callQuality.isOutgoingSilenceDetected();
        }
        return cq;
    }