Crate xylosip

Source
Expand description

§Welcome to xylosip, a memory-safe RFC3261 SIP parser

xylosip is a SIP parser as described in RFC3261. Some parts of RFC2806 and RFC2234 are also implemented. This project is in the early stages and should not be considered stable.

Parsing a SIP message in xylosip is extremely easy, for most cases, simply pass a byte-slice to the Message::parse method and you’ll get a validated message back.

use xylosip::Message;

// read the data from the network
let bytes = b"INVITE sip:bob@biloxi.example.com SIP/2.0\r\n";

Message::parse(bytes)
    // let your application handle the message
    .map(handle_sip_message);

Re-exports§

pub use request::Request;

Modules§

header
contains header-related code
request
contains request-related code

Structs§

Response
Representation of a SIP Response

Enums§

Message
Representation of a SIP message (either a Request or a Response)
Method
Representation of a SIP method