setCallReportIdentifiers method

void setCallReportIdentifiers({
  1. String? sessionId,
  2. String? legId,
})

Adds authoritative Telnyx identifiers received after call creation.

Implementation

void setCallReportIdentifiers({String? sessionId, String? legId}) {
  _callReportTelnyxSessionId = sessionId ?? _callReportTelnyxSessionId;
  _callReportTelnyxLegId = legId ?? _callReportTelnyxLegId;
  _callReportCollector?.updateStoredCallMetadata(
    telnyxSessionId: _callReportTelnyxSessionId,
    telnyxLegId: _callReportTelnyxLegId,
  );
}