Skip to main content

Crate sip_header

Crate sip_header 

Source
Expand description

SIP header field parsers for standard RFC types.

This crate provides parsers for SIP header values as defined in RFC 3261 and extensions. It sits between URI parsing (sip_uri) and full SIP stacks, handling the header-level grammar: display names, header parameters, and structured header values like Call-Info and History-Info.

§Modules

  • header_addr — RFC 3261 name-addr with header-level parameters
  • header — SIP header name catalog and SipHeaderLookup trait
  • message — Extract headers and Request-URI from raw SIP message text (feature: message)
  • call_info — RFC 3261 §20.9 Call-Info header parser
  • history_info — RFC 7044 History-Info header parser
  • geolocation — RFC 6442 Geolocation header parser
  • conference_info — RFC 4575 conference event package (feature: conference-info)

Re-exports§

pub use call_info::SipCallInfo;
pub use call_info::SipCallInfoEntry;
pub use call_info::SipCallInfoError;
pub use geolocation::SipGeolocation;
pub use geolocation::SipGeolocationRef;
pub use header::ParseSipHeaderError;
pub use header::SipHeader;
pub use header::SipHeaderLookup;
pub use header_addr::ParseSipHeaderAddrError;
pub use header_addr::SipHeaderAddr;
pub use history_info::HistoryInfo;
pub use history_info::HistoryInfoEntry;
pub use history_info::HistoryInfoError;
pub use history_info::HistoryInfoReason;
pub use message::extract_header;
pub use message::extract_request_uri;
pub use sip_uri;

Modules§

call_info
SIP Call-Info header parser (RFC 3261 §20.9).
geolocation
SIP Geolocation header types (RFC 6442).
header
Standard SIP header names and typed lookup trait (RFC 3261 and extensions).
header_addr
RFC 3261 name-addr parser with header-level parameter support.
history_info
SIP History-Info header parser (RFC 7044) with embedded RFC 3326 Reason.
message
SIP message text extraction utilities.

Macros§

define_header_enum
Generates a non-exhaustive enum mapping Rust variants to canonical protocol strings.

Functions§

split_comma_entries
Split comma-separated header entries respecting angle-bracket nesting.