libsip

libsip is a library implementation of the sip protocol as described in rfc3261. libsip intends to implement parsing the entire SIP Protocol, but will only provide helpers for certain common use cases.

WIP This library is still very much under construction.

License: MIT Build Status Crates.io Docs.rs

Parsing

```rust extern crate libsip;

use libsip::parse_message;

const SIP_MESSAGE: &'static str "SIP/2.0 200 OK\r\n\r\n";

fn main() { let res = parsemessage(SIPMESSAGE.as_ref()); println!("{:?}", res); } ```

Running the examples

```bash git clone https://github.com/Bytebuddha/libsip cd /libsip

This example expects a server with the credentials in examples/udp_register.rs

to be running without it will fail.

cargo run --example udp_register

This example expects a server with the credentials in examples/console.rs

to be running without it will fail. It prints all requests received to the terminal

cargo run --example console --features async ```

dependencies

Alternatives