calculateRemoteAnswerTime method

int? calculateRemoteAnswerTime(
  1. String callId
)

Calculates the time for remote side to answer (outbound calls). This is from invite sent to call answered.

Implementation

int? calculateRemoteAnswerTime(String callId) {
  final state = _callTrackers[callId];
  if (state == null) return null;
  final inviteSent = state.milestones[milestoneInviteSent];
  final callAnswered = state.milestones[milestoneCallAnsweredByRemote];
  if (inviteSent == null || callAnswered == null) return null;
  return callAnswered - inviteSent;
}