Updated on 2025-11-07 GMT+08:00

Call Quality Log Description

  • Voice streaming media information in a call, which starts with [audio]
    [2025-04-03 14:16:26.973-08:00][INFO][][][api][call_interface.c:893 callPrintChannelInfo][P=167552, T=137748][[audio]bIsCalling:1, bIsSRTP:0, acEncodeProtocol:opus, acDecodeProtocol:opus, ulChannelID:0, ulSendBitRate:9, ulRecvBitRate:26, ulSendTotalLostPacket:0, fSendLossFraction:0.000000, fSendNetLossFraction:0.000000, fSendJitter:105.000000, fSendDelay:5.000000, ulRecvTotalLostPacket:0, fRecvLossFraction:0.000000, fRecvNetLossFraction:0.000000, fRecvJitter:43.000000, fRecvDelay:5.000000]

    The standard call quality value is 3. If the value is greater than 3, the call quality is good. If the value is less than 3, the call quality is poor.

    The call quality is calculated based on the delay, jitter, and packet loss rate. The packet loss rate in this log refers to the value of NetLossFraction.

    • Weight calculation for the Opus codec format:
      • Delay weight: DelayEvalueWeight = (Delay < 150 ? 2 : (Delay <= 300 ? 1 : (Delay <= 500 ? 0.5 : 0)))
      • Jitter weight: JitterEvalueWeight = (Jitter < 50 ? 2 : (Jitter <= 70 ? 1 : (Jitter <= 200 ? 0.5f : 0)))
      • Packet loss rate weight: LostEvalueWeight = (NetLost < 20 ? 2 : (NetLost <= 30 ? 1.5f : (NetLost <= 40 ? 1 : 0)))
    • Weight calculation for other codec formats such as G711:
      • Delay weight: DelayEvalueWeight = (Delay < 100 ? 2 : (Delay <= 300 ? 1 : (Delay <= 500 ? 0.5f : 0)))
      • Jitter weight: JitterEvalueWeight = (Jitter < 30 ? 2 : (Jitter <= 70 ? 1 : (Jitter <= 200 ? 0.5f : 0)))
      • Packet loss rate weight: LostEvalueWeight = (NetLost < 10 ? 2 : (NetLost <= 15 ? 1.5f : (NetLost <= 20 ? 1 : 0)))
    • Network quality calculation:

      NetLevel: LostEvalueWeight * 0.5 + DelayEvalueWeight * 0.25 + JitterEvalueWeight * 0.25

    • Call quality calculation:

      NetLevel < 0.7 Call quality 1

      0.7 <= NetLevel < 1.1 Call quality 2

      1.1 <= NetLevel < 1.45 Call quality 3

      1.45 <= NetLevel < 1.75 Call quality 4

      1.75 <= NetLevel Call quality 5

    Table 1 Voice streaming media information

    Element

    Description

    bIsCalling

    Whether a call is in progress. 1: yes.

    bIsSRTP

    Whether to enable SRTP. 1: yes.

    acEncodeProtocol

    Encoding protocol name.

    acDecodeProtocol

    Decoding protocol name.

    ulSendBitRate

    Send bit rate (kbit/s).

    ulRecvBitRate

    Receive bit rate (kbit/s).

    ulSendTotalLostPacket

    Total lost packets of the sender.

    fSendLossFraction

    Packet loss rate (%) of the sender.

    fSendNetLossFraction

    Packet loss rate (%) of the sender on the network.

    fSendJitter

    Average send jitter (ms).

    fSendDelay

    Average send delay (ms).

    ulRecvTotalLostPacket

    Total lost packets of the recipient.

    fRecvLossFraction

    Packet loss rate (%) of the recipient.

    fRecvNetLossFraction

    Packet loss rate (%) of the recipient on the network.

    fRecvJitter

    Average receive jitter (ms).

    fRecvDelay

    Average receive delay (ms).

  • Video streaming media information in a call, which starts with [video]
    [2025-04-03 14:16:26.973-08:00][INFO][][][api][call_interface.c:927 callPrintChannelInfo][P=167552, T=137748][[video]acEncodeName:H264, acDecodeName:H264, acEncoderSize:512*288, acDecoderSize:VGA, bIsSRTP:0, ulSendFrameRate:22, ulRecvFrameRate:15, ulVideoSendBitRate:2, ulVideoRecvBitRate:1248, acEncoderProfile:HP, acDecoderProfile:HP, VideoSendLossFraction:0.000000, VideoSendJitter:26.000000, VideoSendDelay:5.000000, VideoRecvLossFraction:0.000000, VideoRecvJitter:12.000000, VideoRecvDelay:5.000000, lWidth:640, lHeight:480]
    Table 2 Video streaming media information

    Element

    Description

    acEncodeName

    Encoding name.

    acDecodeName

    Decoding name.

    acEncoderSize

    Image encoding resolution.

    acDecoderSize

    Image decoding resolution.

    bIsSRTP

    Whether to enable SRTP. 1: yes.

    ulSendFrameRate

    Video encoding frame rate.

    ulRecvFrameRate

    Video decoding frame rate.

    ulVideoSendBitRate

    Encoding bit rate (bit/s).

    ulVideoRecvBitRate

    Decoding bit rate (bit/s).

    acEncoderProfile

    Video encoding format.

    acDecoderProfile

    Video decoding format.

    VideoSendLossFraction

    Packet loss rate (%) of the sender.

    VideoSendJitter

    Average send jitter (ms).

    VideoSendDelay

    Average send delay (ms).

    VideoRecvLossFraction

    Packet loss rate (%) of the recipient.

    VideoRecvJitter

    Average receive jitter (ms).

    VideoRecvDelay

    Average receive delay (ms).

    lWidth

    Video resolution width (PPI).

    lHeight

    Video resolution height (PPI).

  • Presentation media information in a call, which starts with [data]
    [2025-04-03 14:16:26.973-08:00][INFO][][][api][call_interface.c:948 callPrintChannelInfo][P=167552, T=137748][[data]acEncodeName:, acDecodeName:, acEncoderSize:, acDecoderSize:, bIsSRTP:0, ulSendFrameRate:0, ulRecvFrameRate:0, ulVideoSendBitRate:0, ulVideoRecvBitRate:0, acEncoderProfile:, acDecoderProfile:, VideoSendLossFraction:0.000000, VideoSendJitter:0.000000, VideoSendDelay:0.000000, VideoRecvLossFraction:0.000000, VideoRecvJitter:0.000000, VideoRecvDelay:0.000000, lWidth:0, lHeight:0]
    Table 3 Presentation media information

    Element

    Description

    acEncodeName

    Encoding name.

    acDecodeName

    Decoding name.

    acEncoderSize

    Image encoding resolution.

    acDecoderSize

    Image decoding resolution.

    bIsSRTP

    Whether to enable SRTP. 1: yes.

    ulSendFrameRate

    Video encoding frame rate.

    ulRecvFrameRate

    Video decoding frame rate.

    ulVideoSendBitRate

    Encoding bit rate (bit/s).

    ulVideoRecvBitRate

    Decoding bit rate (bit/s).

    acEncoderProfile

    Video encoding format.

    acDecoderProfile

    Video decoding format.

    VideoSendLossFraction

    Packet loss rate (%) of the sender.

    VideoSendJitter

    Average send jitter (ms).

    VideoSendDelay

    Average send delay (ms).

    VideoRecvLossFraction

    Packet loss rate (%) of the recipient.

    VideoRecvJitter

    Average receive jitter (ms).

    VideoRecvDelay

    Average receive delay (ms).

    lWidth

    Video resolution width (PPI).

    lHeight

    Video resolution height (PPI).