Class CallEndpoint
Represents a call endpoint used in call records and call creation. The populated properties depend on the endpoint type (phone, websocket, SIP, or VBC).
public class CallEndpoint
- Inheritance
-
CallEndpoint
- Inherited Members
Properties
ContentType
The internet media type for WebSocket audio streaming. Supported values: "audio/l16;rate=8000" or "audio/l16;rate=16000". Only applicable for WebSocket endpoints.
[JsonProperty("content-type", Order = 2)]
public string ContentType { get; set; }
Property Value
DtmfAnswer
DTMF digits to send automatically when the call is answered. The * and # digits are respected. Use "p" to create 500ms pauses (e.g., "p*123#"). Only applicable for phone endpoints.
[JsonProperty("dtmfAnswer")]
public string DtmfAnswer { get; set; }
Property Value
Headers
Custom metadata headers to include with the connection. For WebSocket endpoints, sent as HTTP headers during the upgrade. For SIP endpoints, sent as X-prefixed SIP INVITE headers.
[JsonProperty("headers", Order = 3)]
public object Headers { get; set; }
Property Value
Number
The phone number in E.164 format (7-15 digits, e.g., "14155550100"). Only applicable for phone endpoints.
[JsonProperty("number")]
public string Number { get; set; }
Property Value
Type
The endpoint type: "phone", "websocket", "sip", "app", or "vbc".
[JsonProperty("type", Order = 0)]
public string Type { get; set; }
Property Value
Uri
The URI for WebSocket (e.g., "wss://example.com/socket") or SIP (e.g., "sip:user@sip.example.com") endpoints.
[JsonProperty("uri", Order = 1)]
public string Uri { get; set; }