Class SIPInboundTrunkInfo
public sealed class SIPInboundTrunkInfo : IMessage<SIPInboundTrunkInfo>, IEquatable<SIPInboundTrunkInfo>, IDeepCloneable<SIPInboundTrunkInfo>, IBufferMessage, IMessage
- Inheritance
-
SIPInboundTrunkInfo
- Implements
-
IMessage<SIPInboundTrunkInfo>IDeepCloneable<SIPInboundTrunkInfo>IBufferMessageIMessage
- Inherited Members
Constructors
SIPInboundTrunkInfo()
public SIPInboundTrunkInfo()
SIPInboundTrunkInfo(SIPInboundTrunkInfo)
public SIPInboundTrunkInfo(SIPInboundTrunkInfo other)
Parameters
otherSIPInboundTrunkInfo
Fields
AllowedAddressesFieldNumber
Field number for the "allowed_addresses" field.
public const int AllowedAddressesFieldNumber = 5
Field Value
AllowedNumbersFieldNumber
Field number for the "allowed_numbers" field.
public const int AllowedNumbersFieldNumber = 6
Field Value
AttributesToHeadersFieldNumber
Field number for the "attributes_to_headers" field.
public const int AttributesToHeadersFieldNumber = 14
Field Value
AuthPasswordFieldNumber
Field number for the "auth_password" field.
public const int AuthPasswordFieldNumber = 8
Field Value
AuthRealmFieldNumber
Field number for the "auth_realm" field.
public const int AuthRealmFieldNumber = 19
Field Value
AuthUsernameFieldNumber
Field number for the "auth_username" field.
public const int AuthUsernameFieldNumber = 7
Field Value
CreatedAtFieldNumber
Field number for the "created_at" field.
public const int CreatedAtFieldNumber = 17
Field Value
HeadersFieldNumber
Field number for the "headers" field.
public const int HeadersFieldNumber = 9
Field Value
HeadersToAttributesFieldNumber
Field number for the "headers_to_attributes" field.
public const int HeadersToAttributesFieldNumber = 10
Field Value
IncludeHeadersFieldNumber
Field number for the "include_headers" field.
public const int IncludeHeadersFieldNumber = 15
Field Value
KrispEnabledFieldNumber
Field number for the "krisp_enabled" field.
public const int KrispEnabledFieldNumber = 13
Field Value
MaxCallDurationFieldNumber
Field number for the "max_call_duration" field.
public const int MaxCallDurationFieldNumber = 12
Field Value
MediaEncryptionFieldNumber
Field number for the "media_encryption" field.
public const int MediaEncryptionFieldNumber = 16
Field Value
MetadataFieldNumber
Field number for the "metadata" field.
public const int MetadataFieldNumber = 3
Field Value
NameFieldNumber
Field number for the "name" field.
public const int NameFieldNumber = 2
Field Value
NumbersFieldNumber
Field number for the "numbers" field.
public const int NumbersFieldNumber = 4
Field Value
RingingTimeoutFieldNumber
Field number for the "ringing_timeout" field.
public const int RingingTimeoutFieldNumber = 11
Field Value
SipTrunkIdFieldNumber
Field number for the "sip_trunk_id" field.
public const int SipTrunkIdFieldNumber = 1
Field Value
UpdatedAtFieldNumber
Field number for the "updated_at" field.
public const int UpdatedAtFieldNumber = 18
Field Value
Properties
AllowedAddresses
CIDR or IPs that traffic is accepted from. An empty list means all inbound traffic is accepted.
public RepeatedField<string> AllowedAddresses { get; }
Property Value
- RepeatedField<string>
AllowedNumbers
Numbers that are allowed to make calls to this Trunk. An empty list means calls from any phone number is accepted.
public RepeatedField<string> AllowedNumbers { get; }
Property Value
- RepeatedField<string>
AttributesToHeaders
Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests. Keys are the names of attributes and values are the names of X-* headers they will be mapped to.
public MapField<string, string> AttributesToHeaders { get; }
Property Value
AuthPassword
public string AuthPassword { get; set; }
Property Value
AuthRealm
public string AuthRealm { get; set; }
Property Value
AuthUsername
Username and password used to authenticate inbound SIP invites. May be empty to have no authentication.
public string AuthUsername { get; set; }
Property Value
CreatedAt
public Timestamp CreatedAt { get; set; }
Property Value
- Timestamp
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Headers
Include these SIP X-* headers in 200 OK responses.
public MapField<string, string> Headers { get; }
Property Value
HeadersToAttributes
Map SIP X-* headers from INVITE to SIP participant attributes.
public MapField<string, string> HeadersToAttributes { get; }
Property Value
IncludeHeaders
Map SIP headers from INVITE to sip.h.* participant attributes automatically.
When the names of required headers is known, using headers_to_attributes is strongly recommended.
When mapping INVITE headers to response headers with attributes_to_headers map, lowercase header names should be used, for example: sip.h.x-custom-header.
public SIPHeaderOptions IncludeHeaders { get; set; }
Property Value
KrispEnabled
public bool KrispEnabled { get; set; }
Property Value
MaxCallDuration
Max call duration.
public Duration MaxCallDuration { get; set; }
Property Value
- Duration
MediaEncryption
public SIPMediaEncryption MediaEncryption { get; set; }
Property Value
Metadata
User-defined metadata for the Trunk.
public string Metadata { get; set; }
Property Value
Name
Human-readable name for the Trunk.
public string Name { get; set; }
Property Value
Numbers
Numbers associated with LiveKit SIP. The Trunk will only accept calls made to these numbers. Creating multiple Trunks with different phone numbers allows having different rules for a single provider.
public RepeatedField<string> Numbers { get; }
Property Value
- RepeatedField<string>
Parser
public static MessageParser<SIPInboundTrunkInfo> Parser { get; }
Property Value
- MessageParser<SIPInboundTrunkInfo>
RingingTimeout
Max time for the caller to wait for track subscription.
public Duration RingingTimeout { get; set; }
Property Value
- Duration
SipTrunkId
public string SipTrunkId { get; set; }
Property Value
UpdatedAt
public Timestamp UpdatedAt { get; set; }
Property Value
- Timestamp
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public SIPInboundTrunkInfo Clone()
Returns
- SIPInboundTrunkInfo
A deep clone of this object.
Equals(SIPInboundTrunkInfo)
public bool Equals(SIPInboundTrunkInfo other)
Parameters
otherSIPInboundTrunkInfo
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(SIPInboundTrunkInfo)
Merges the given message into this one.
public void MergeFrom(SIPInboundTrunkInfo other)
Parameters
otherSIPInboundTrunkInfo
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.