pub struct SipDialog {
pub call_id: String,
pub local_tag: String,
pub remote_tag: Option<String>,
pub local_uri: String,
pub remote_uri: String,
pub remote_target: Option<String>,
pub local_cseq: u32,
pub remote_cseq: Option<u32>,
pub state: DialogState,
}Fields§
§call_id: String§local_tag: String§remote_tag: Option<String>§local_uri: String§remote_uri: String§remote_target: Option<String>§local_cseq: u32§remote_cseq: Option<u32>§state: DialogStateImplementations§
Source§impl SipDialog
impl SipDialog
Sourcepub fn new_uac(
call_id: String,
local_tag: String,
local_uri: String,
remote_uri: String,
) -> Self
pub fn new_uac( call_id: String, local_tag: String, local_uri: String, remote_uri: String, ) -> Self
Create a dialog from an outgoing INVITE request (UAC side)
Sourcepub fn new_uas(
call_id: String,
local_tag: String,
remote_tag: String,
local_uri: String,
remote_uri: String,
) -> Self
pub fn new_uas( call_id: String, local_tag: String, remote_tag: String, local_uri: String, remote_uri: String, ) -> Self
Create a dialog from an incoming INVITE request (UAS side)
Sourcepub fn from_invite(msg: &SipMessage) -> Option<Self>
pub fn from_invite(msg: &SipMessage) -> Option<Self>
Try to create a dialog from an incoming INVITE request
Sourcepub fn process_response(&mut self, msg: &SipMessage) -> bool
pub fn process_response(&mut self, msg: &SipMessage) -> bool
Process an incoming response (for UAC dialogs)
Sourcepub fn process_bye(&mut self, msg: &SipMessage) -> bool
pub fn process_bye(&mut self, msg: &SipMessage) -> bool
Process an incoming BYE request
Sourcepub fn matches(&self, msg: &SipMessage) -> bool
pub fn matches(&self, msg: &SipMessage) -> bool
Check if a message belongs to this dialog
pub fn is_confirmed(&self) -> bool
pub fn is_terminated(&self) -> bool
pub fn is_early(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SipDialog
impl RefUnwindSafe for SipDialog
impl Send for SipDialog
impl Sync for SipDialog
impl Unpin for SipDialog
impl UnsafeUnpin for SipDialog
impl UnwindSafe for SipDialog
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
Mutably borrows from an owned value. Read more