pub struct CreateSipParticipantRequest {Show 20 fields
pub sip_trunk_id: String,
pub trunk: Option<SipOutboundConfig>,
pub sip_call_to: String,
pub sip_number: String,
pub room_name: String,
pub participant_identity: String,
pub participant_name: String,
pub participant_metadata: String,
pub participant_attributes: HashMap<String, String>,
pub dtmf: String,
pub play_ringtone: bool,
pub play_dialtone: bool,
pub hide_phone_number: bool,
pub headers: HashMap<String, String>,
pub include_headers: i32,
pub ringing_timeout: Option<Duration>,
pub max_call_duration: Option<Duration>,
pub krisp_enabled: bool,
pub media_encryption: i32,
pub wait_until_answered: bool,
}
Expand description
A SIP Participant is a singular SIP session connected to a LiveKit room via a SIP Trunk into a SIP DispatchRule
Fields§
§sip_trunk_id: String
What SIP Trunk should be used to dial the user
trunk: Option<SipOutboundConfig>
§sip_call_to: String
What number should be dialed via SIP
sip_number: String
Optional SIP From number to use. If empty, trunk number is used.
room_name: String
What LiveKit room should this participant be connected too
participant_identity: String
Optional identity of the participant in LiveKit room
participant_name: String
Optional name of the participant in LiveKit room
participant_metadata: String
Optional user-defined metadata. Will be attached to a created Participant in the room.
participant_attributes: HashMap<String, String>
Optional user-defined attributes. Will be attached to a created Participant in the room.
dtmf: String
Optionally send following DTMF digits (extension codes) when making a call. Character ‘w’ can be used to add a 0.5 sec delay.
play_ringtone: bool
Optionally play dialtone in the room as an audible indicator for existing participants. The play_ringtone
option is deprectated but has the same effect.
play_dialtone: bool
§hide_phone_number: bool
By default the From value (Phone number) is used for participant name/identity (if not set) and added to attributes. If true, a random value for identity will be used and numbers will be omitted from attributes.
headers: HashMap<String, String>
These headers are sent as-is and may help identify this call as coming from LiveKit for the other SIP endpoint.
include_headers: i32
Map SIP headers from 200 OK to sip.h.* participant attributes automatically.
When the names of required headers is known, using headers_to_attributes is strongly recommended.
When mapping 200 OK headers to follow-up request 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 callee to answer the call.
max_call_duration: Option<Duration>
Max call duration.
krisp_enabled: bool
Enable voice isolation for the callee.
media_encryption: i32
§wait_until_answered: bool
Wait for the answer for the call before returning.
NEXT ID: 21
Implementations§
Source§impl CreateSipParticipantRequest
impl CreateSipParticipantRequest
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.
Trait Implementations§
Source§impl Clone for CreateSipParticipantRequest
impl Clone for CreateSipParticipantRequest
Source§fn clone(&self) -> CreateSipParticipantRequest
fn clone(&self) -> CreateSipParticipantRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateSipParticipantRequest
impl Debug for CreateSipParticipantRequest
§impl<'de> Deserialize<'de> for CreateSipParticipantRequest
impl<'de> Deserialize<'de> for CreateSipParticipantRequest
§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 CreateSipParticipantRequest
impl Message for CreateSipParticipantRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.