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 3261name-addrwith header-level parametersheader— SIP header name catalog andSipHeaderLookuptraitmessage— Extract headers and Request-URI from raw SIP message text (feature:message)call_info— RFC 3261 §20.9 Call-Info header parserhistory_info— RFC 7044 History-Info header parsergeolocation— RFC 6442 Geolocation header parserconference_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-addrparser 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.