pub enum Finding {
MissingRequiredHeader(&'static str),
MalformedRequiredHeader(&'static str),
RepeatedSingleValueHeader(&'static str),
CSeqMethodMismatch,
UnsupportedVersion,
RequestUriHasHeaders,
}Expand description
Something wrong with a message that parsed.
Variants§
MissingRequiredHeader(&'static str)
A header RFC 3261 §8.1.1 requires is absent.
MalformedRequiredHeader(&'static str)
A required header is present but its value does not parse.
RepeatedSingleValueHeader(&'static str)
A header the RFC permits at most once appears more than once (RFC 4475 §3.3.8).
CSeqMethodMismatch
The CSeq method does not match the request line (RFC 4475 §3.1.2.17, §3.1.2.18).
UnsupportedVersion
The protocol version is one sipx does not speak; answer 505 (RFC 4475 §3.1.2.16).
RequestUriHasHeaders
The Request-URI carries header components, which RFC 3261 §19.1.1 forbids (RFC 4475 §3.1.2.11).
Implementations§
Source§impl Finding
impl Finding
Sourcepub fn is_repairable(&self) -> bool
pub fn is_repairable(&self) -> bool
Whether a proxy may reasonably forward the message anyway.
A missing Max-Forwards is the one finding a proxy is explicitly allowed to repair
rather than reject: RFC 3261 §16.6 step 3 says it MAY add the header itself. Every
other finding means the message cannot be safely acted on.