Table of Contents

Class PhoneNumber

Namespace
Livekit.Server.Sdk.Dotnet
Assembly
LivekitApi.dll

PhoneNumber - Unified phone number type for inventory and purchased numbers

public sealed class PhoneNumber : IMessage<PhoneNumber>, IEquatable<PhoneNumber>, IDeepCloneable<PhoneNumber>, IBufferMessage, IMessage
Inheritance
PhoneNumber
Implements
IBufferMessage
Inherited Members

Constructors

PhoneNumber()

public PhoneNumber()

PhoneNumber(PhoneNumber)

public PhoneNumber(PhoneNumber other)

Parameters

other PhoneNumber

Properties

AreaCode

Area code (e.g., "415")

public string AreaCode { get; set; }

Property Value

string

AssignedAt

Assignment timestamp

public Timestamp AssignedAt { get; set; }

Property Value

Timestamp

Capabilities

Available capabilities (e.g., "voice", "sms")

public RepeatedField<string> Capabilities { get; }

Property Value

RepeatedField<string>

CountryCode

Country code (e.g., "US")

public string CountryCode { get; set; }

Property Value

string

CreatedAt

Creation timestamp

public Timestamp CreatedAt { get; set; }

Property Value

Timestamp

E164Format

Phone number in E.164 format (e.g., "+14155552671")

public string E164Format { get; set; }

Property Value

string

Id

Unique identifier

public string Id { get; set; }

Property Value

string

InboundStatus

Inbound calling status

public PhoneNumberInboundStatus InboundStatus { get; set; }

Property Value

PhoneNumberInboundStatus

Locality

City/locality (e.g., "San Francisco")

public string Locality { get; set; }

Property Value

string

Name

Human-readable name/label for the phone number

public string Name { get; set; }

Property Value

string

NumberType

Number type (mobile, local, toll-free, unknown)

public PhoneNumberType NumberType { get; set; }

Property Value

PhoneNumberType

OutboundStatus

Outbound calling status

public PhoneNumberOutboundStatus OutboundStatus { get; set; }

Property Value

PhoneNumberOutboundStatus

Region

State/region (e.g., "CA")

public string Region { get; set; }

Property Value

string

ReleasedAt

Release timestamp (if applicable)

public Timestamp ReleasedAt { get; set; }

Property Value

Timestamp

SipDispatchRuleId

Associated SIP dispatch rule ID (deprecated: use sip_dispatch_rule_ids instead)

[Obsolete]
public string SipDispatchRuleId { get; set; }

Property Value

string

SipDispatchRuleIds

Associated SIP dispatch rule IDs

public RepeatedField<string> SipDispatchRuleIds { get; }

Property Value

RepeatedField<string>

SpamScore

Spam score for fraud detection

public double SpamScore { get; set; }

Property Value

double

Status

Current status

public PhoneNumberStatus Status { get; set; }

Property Value

PhoneNumberStatus

UpdatedAt

Last update timestamp

public Timestamp UpdatedAt { get; set; }

Property Value

Timestamp