1 unstable release

0.1.0 Mar 1, 2020

#17 in #sip

MIT license

135KB
4.5K SLoC

xylosip

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.

build


lib.rs:

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);

Dependencies

~1MB
~18K SLoC