ภาษา

ProjectsAgentsModelFactory.TelephonyCallRecord Method

Definition

Detailed diagnostics for a durable inbound call to a voice agent.

public static Azure.AI.Projects.Agents.TelephonyCallRecord TelephonyCallRecord(string id = default, Azure.AI.Projects.Agents.TelephonyProvider provider = default, string providerCallId = default, string callerNumber = default, string providerNumber = default, Azure.AI.Projects.Agents.TelephonyCallStatus status = default, Azure.AI.Projects.Agents.TelephonyCallPhase phase = default, DateTimeOffset startedOn = default, DateTimeOffset? answeredOn = default, DateTimeOffset? mediaConnectedOn = default, DateTimeOffset? agentSessionReadyOn = default, DateTimeOffset? endedOn = default, TimeSpan? durationMs = default, Azure.AI.Projects.Agents.TelephonyCallEndReason? endReason = default, int? providerStatusCode = default, int? providerSubCode = default, string providerMessage = default, Azure.AI.Projects.Agents.TelephonyCallTiming timing = default, Azure.AI.Projects.Agents.TelephonyCallTrace trace = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.Agents.TelephonyCallLifecycleEvent> events = default, bool eventsTruncated = false);
static member TelephonyCallRecord : string * Azure.AI.Projects.Agents.TelephonyProvider * string * string * string * Azure.AI.Projects.Agents.TelephonyCallStatus * Azure.AI.Projects.Agents.TelephonyCallPhase * DateTimeOffset * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<TimeSpan> * Nullable<Azure.AI.Projects.Agents.TelephonyCallEndReason> * Nullable<int> * Nullable<int> * string * Azure.AI.Projects.Agents.TelephonyCallTiming * Azure.AI.Projects.Agents.TelephonyCallTrace * seq<Azure.AI.Projects.Agents.TelephonyCallLifecycleEvent> * bool -> Azure.AI.Projects.Agents.TelephonyCallRecord
Public Shared Function TelephonyCallRecord (Optional id As String = Nothing, Optional provider As TelephonyProvider = Nothing, Optional providerCallId As String = Nothing, Optional callerNumber As String = Nothing, Optional providerNumber As String = Nothing, Optional status As TelephonyCallStatus = Nothing, Optional phase As TelephonyCallPhase = Nothing, Optional startedOn As DateTimeOffset = Nothing, Optional answeredOn As Nullable(Of DateTimeOffset) = Nothing, Optional mediaConnectedOn As Nullable(Of DateTimeOffset) = Nothing, Optional agentSessionReadyOn As Nullable(Of DateTimeOffset) = Nothing, Optional endedOn As Nullable(Of DateTimeOffset) = Nothing, Optional durationMs As Nullable(Of TimeSpan) = Nothing, Optional endReason As Nullable(Of TelephonyCallEndReason) = Nothing, Optional providerStatusCode As Nullable(Of Integer) = Nothing, Optional providerSubCode As Nullable(Of Integer) = Nothing, Optional providerMessage As String = Nothing, Optional timing As TelephonyCallTiming = Nothing, Optional trace As TelephonyCallTrace = Nothing, Optional events As IEnumerable(Of TelephonyCallLifecycleEvent) = Nothing, Optional eventsTruncated As Boolean = false) As TelephonyCallRecord

Parameters

id
String

The service-generated call identifier.

provider
TelephonyProvider

The telephony provider.

providerCallId
String

The provider-assigned call identifier, when available.

callerNumber
String

The caller's phone number, when supplied by the provider.

providerNumber
String

The Teams Phone Extension or Twilio number that received the call.

status
TelephonyCallStatus

The lifecycle status of the call.

phase
TelephonyCallPhase

The provider-neutral lifecycle phase reached by the call.

startedOn
DateTimeOffset

The Unix timestamp (in seconds) for when the inbound webhook was received.

answeredOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the provider reported the call as answered.

mediaConnectedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the provider media channel connected.

agentSessionReadyOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the voice-agent session became ready.

endedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the call ended.

durationMs
Nullable<TimeSpan>

The call duration.

endReason
Nullable<TelephonyCallEndReason>

The service-generated reason that this single call ended, rather than the outcome of an overall outbound call job. Additional string codes may be returned.

providerStatusCode
Nullable<Int32>

The provider status code associated with the terminal result.

providerSubCode
Nullable<Int32>

The provider subcode associated with the terminal result.

providerMessage
String

The provider message associated with the terminal result.

timing
TelephonyCallTiming

Detailed provider-neutral call timing.

trace
TelephonyCallTrace

Correlation to the customer-facing Foundry trace.

events
IEnumerable<TelephonyCallLifecycleEvent>

The lifecycle timeline.

eventsTruncated
Boolean

Whether older lifecycle events were omitted from the timeline.

Returns

A new TelephonyCallRecord instance for mocking.

Applies to