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
otherPhoneNumber
Properties
AreaCode
Area code (e.g., "415")
public string AreaCode { get; set; }
Property Value
AssignedAt
Assignment timestamp
public Timestamp AssignedAt { get; set; }
Property Value
Capabilities
Available capabilities (e.g., "voice", "sms")
public RepeatedField<string> Capabilities { get; }
Property Value
CountryCode
Country code (e.g., "US")
public string CountryCode { get; set; }
Property Value
CreatedAt
Creation timestamp
public Timestamp CreatedAt { get; set; }
Property Value
E164Format
Phone number in E.164 format (e.g., "+14155552671")
public string E164Format { get; set; }
Property Value
Id
Unique identifier
public string Id { get; set; }
Property Value
InboundStatus
Inbound calling status
public PhoneNumberInboundStatus InboundStatus { get; set; }
Property Value
Locality
City/locality (e.g., "San Francisco")
public string Locality { get; set; }
Property Value
Name
Human-readable name/label for the phone number
public string Name { get; set; }
Property Value
NumberType
Number type (mobile, local, toll-free, unknown)
public PhoneNumberType NumberType { get; set; }
Property Value
OutboundStatus
Outbound calling status
public PhoneNumberOutboundStatus OutboundStatus { get; set; }
Property Value
Region
State/region (e.g., "CA")
public string Region { get; set; }
Property Value
ReleasedAt
Release timestamp (if applicable)
public Timestamp ReleasedAt { get; set; }
Property Value
SipDispatchRuleId
Associated SIP dispatch rule ID (deprecated: use sip_dispatch_rule_ids instead)
[Obsolete]
public string SipDispatchRuleId { get; set; }
Property Value
SipDispatchRuleIds
Associated SIP dispatch rule IDs
public RepeatedField<string> SipDispatchRuleIds { get; }
Property Value
SpamScore
Spam score for fraud detection
public double SpamScore { get; set; }
Property Value
Status
Current status
public PhoneNumberStatus Status { get; set; }
Property Value
UpdatedAt
Last update timestamp
public Timestamp UpdatedAt { get; set; }