20 lines
585 B
Rust
20 lines
585 B
Rust
//! SIP protocol library for the proxy engine.
|
|
//!
|
|
//! Provides SIP message parsing/serialization, dialog state management,
|
|
//! SDP handling, Digest authentication, and URI rewriting.
|
|
//! Ported from the TypeScript `ts/sip/` library.
|
|
|
|
pub mod message;
|
|
pub mod dialog;
|
|
pub mod helpers;
|
|
pub mod rewrite;
|
|
|
|
/// Network endpoint (address + port + optional negotiated codec).
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct Endpoint {
|
|
pub address: String,
|
|
pub port: u16,
|
|
/// First payload type from the SDP `m=audio` line (the preferred codec).
|
|
pub codec_pt: Option<u8>,
|
|
}
|