Function buildPreCallIceReport

  • Build the ICE report section from the diagnostic context.

    Returns undefined when:

    • no call was established
    • the call has no peer connection
    • peerConnection.getStats() rejects or is unavailable

    Also computes the ICE server comparison (configured ICE servers vs. gathered candidates) when ICE servers are available in the context.

    Parameters

    Returns PreCallIceReport | undefined