pub struct DialogId {
pub call_id: String,
pub from_tag: String,
pub to_tag: String,
}Expand description
SIP Dialog Identifier
DialogId uniquely identifies a SIP dialog. According to RFC 3261, a dialog is
identified by the Call-ID, local tag, and remote tag.
§Fields
call_id- The Call-ID header field value from SIP messages, identifying a call sessionfrom_tag- The tag parameter from the From header field, identifying the dialog initiatorto_tag- The tag parameter from the To header field, identifying the dialog recipient
§Examples
use ftth_rsipstack::dialog::DialogId;
let dialog_id = DialogId {
call_id: "1234567890@example.com".to_string(),
from_tag: "alice-tag-123".to_string(),
to_tag: "bob-tag-456".to_string(),
};
println!("Dialog ID: {}", dialog_id);§Notes
- During early dialog establishment,
to_tagmay be an empty string - Dialog ID remains constant throughout the dialog lifetime
- Used for managing and routing SIP messages at the dialog layer
Fields§
§call_id: String§from_tag: String§to_tag: StringTrait Implementations§
impl Eq for DialogId
Auto Trait Implementations§
impl Freeze for DialogId
impl RefUnwindSafe for DialogId
impl Send for DialogId
impl Sync for DialogId
impl Unpin for DialogId
impl UnwindSafe for DialogId
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