pub struct SipInboundTrunkInfo {Show 21 fields
pub sip_trunk_id: String,
pub name: String,
pub metadata: String,
pub numbers: Vec<String>,
pub allowed_addresses: Vec<String>,
pub allowed_numbers: Vec<String>,
pub auth_username: String,
pub auth_password: String,
pub auth_realm: String,
pub headers: HashMap<String, String>,
pub headers_to_attributes: HashMap<String, String>,
pub attributes_to_headers: HashMap<String, String>,
pub include_headers: i32,
pub ringing_timeout: Option<Duration>,
pub ringing_timeout_status: i32,
pub max_call_duration: Option<Duration>,
pub krisp_enabled: bool,
pub media_encryption: i32,
pub media: Option<SipMediaConfig>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
}Fields§
§sip_trunk_id: String§name: StringHuman-readable name for the Trunk.
metadata: StringUser-defined metadata for the Trunk.
numbers: Vec<String>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.
allowed_addresses: Vec<String>CIDR or IPs that traffic is accepted from. An empty list means all inbound traffic is accepted.
allowed_numbers: Vec<String>Numbers that are allowed to make calls to this Trunk. An empty list means calls from any phone number is accepted.
auth_username: StringUsername and password used to authenticate inbound SIP invites. May be empty to have no authentication.
auth_password: String§auth_realm: String§headers: HashMap<String, String>Include these SIP X-* headers in 200 OK responses.
headers_to_attributes: HashMap<String, String>Map SIP X-* headers from INVITE to SIP participant attributes.
attributes_to_headers: HashMap<String, String>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.
include_headers: i32Map 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.
ringing_timeout: Option<Duration>Max time for the caller to wait for track subscription.
ringing_timeout_status: i32SIP status code if ringing_timeout elapses. Unset means using system default.
max_call_duration: Option<Duration>Max call duration.
krisp_enabled: bool§media_encryption: i32media: Option<SipMediaConfig>§created_at: Option<Timestamp>§updated_at: Option<Timestamp>Implementations§
Source§impl SipInboundTrunkInfo
impl SipInboundTrunkInfo
Sourcepub fn include_headers(&self) -> SipHeaderOptions
pub fn include_headers(&self) -> SipHeaderOptions
Returns the enum value of include_headers, or the default if the field is set to an invalid enum value.
Sourcepub fn set_include_headers(&mut self, value: SipHeaderOptions)
pub fn set_include_headers(&mut self, value: SipHeaderOptions)
Sets include_headers to the provided enum value.
Sourcepub fn media_encryption(&self) -> SipMediaEncryption
pub fn media_encryption(&self) -> SipMediaEncryption
Returns the enum value of media_encryption, or the default if the field is set to an invalid enum value.
Sourcepub fn set_media_encryption(&mut self, value: SipMediaEncryption)
pub fn set_media_encryption(&mut self, value: SipMediaEncryption)
Sets media_encryption to the provided enum value.
Sourcepub fn ringing_timeout_status(&self) -> SipStatusCode
pub fn ringing_timeout_status(&self) -> SipStatusCode
Returns the enum value of ringing_timeout_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_ringing_timeout_status(&mut self, value: SipStatusCode)
pub fn set_ringing_timeout_status(&mut self, value: SipStatusCode)
Sets ringing_timeout_status to the provided enum value.
Trait Implementations§
Source§impl Clone for SipInboundTrunkInfo
impl Clone for SipInboundTrunkInfo
Source§impl Debug for SipInboundTrunkInfo
impl Debug for SipInboundTrunkInfo
Source§impl Default for SipInboundTrunkInfo
impl Default for SipInboundTrunkInfo
§impl<'de> Deserialize<'de> for SipInboundTrunkInfo
impl<'de> Deserialize<'de> for SipInboundTrunkInfo
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for SipInboundTrunkInfo
impl Message for SipInboundTrunkInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.