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

Commit 14996b2b authored by radhika's avatar radhika Committed by Radhika Agrawal
Browse files

Add rtp silence detection and inactivity detection to call quality

metrics in telephony .proto

Test: builds
Bug: b/143307441
Change-Id: I47452394d9ba718b264df4d2baae0c7f29207565
Merged-In: I47452394d9ba718b264df4d2baae0c7f29207565
parent 032d415f
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;
    }