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

Commit 2a50d805 authored by radhika's avatar radhika
Browse files

Add rtp silence detection and inactivity detection to call quality

metrics in telephony .proto

Test: builds
Bug: b/143307441
Change-Id: I47452394d9ba718b264df4d2baae0c7f29207565
parent 03a25ab3
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2242,6 +2242,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
@@ -2126,6 +2126,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;
    }