pub struct CreateSipParticipantRequest {
pub sip_trunk_id: String,
pub sip_call_to: 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 hide_phone_number: 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: StringWhat SIP Trunk should be used to dial the user
sip_call_to: StringWhat number should be dialed via SIP
room_name: StringWhat LiveKit room should this participant be connected too
participant_identity: StringOptional identity of the participant in LiveKit room
participant_name: StringOptional name of the participant in LiveKit room
participant_metadata: StringOptional 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: StringOptionally send following DTMF digits (extension codes) when making a call. Character ‘w’ can be used to add a 0.5 sec delay.
play_ringtone: boolOptionally play ringtone in the room as an audible indicator for existing participants
hide_phone_number: boolBy 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.
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.source§impl PartialEq for CreateSipParticipantRequest
impl PartialEq for CreateSipParticipantRequest
source§fn eq(&self, other: &CreateSipParticipantRequest) -> bool
fn eq(&self, other: &CreateSipParticipantRequest) -> bool
self and other values to be equal, and is used
by ==.§impl Serialize for CreateSipParticipantRequest
impl Serialize for CreateSipParticipantRequest
impl StructuralPartialEq for CreateSipParticipantRequest
Auto Trait Implementations§
impl Freeze for CreateSipParticipantRequest
impl RefUnwindSafe for CreateSipParticipantRequest
impl Send for CreateSipParticipantRequest
impl Sync for CreateSipParticipantRequest
impl Unpin for CreateSipParticipantRequest
impl UnwindSafe for CreateSipParticipantRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)