Skip to main content

extract_request_uri

Function extract_request_uri 

Source
pub fn extract_request_uri(message: &str) -> Option<String>
Expand description

Extract the Request-URI from a SIP request message.

Parses the first line as Method SP Request-URI SP SIP-Version (RFC 3261 Section 7.1) and returns the Request-URI.

Returns None for status lines (SIP/2.0 200 OK) or if the request line cannot be parsed.