Introduction
Library for parsing/editing/constructing SIP requests and responses.
This is the very first version where only simple parsing is support.
Example
let invite_msg_buf = "INVITE sip:bob@biloxi.com SIP/2.0\r\n\
Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKkjshdyff\r\n\
To: Bob <sip:bob@biloxi.com>\r\n\
From: Alice <sip:alice@atlanta.com>;tag=88sja8x\r\n\
Max-Forwards: 70\r\n\
Call-ID: 987asjd97y7atg\r\n\
CSeq: 986759 INVITE\r\n\r\nbody_stuff"
.as_bytes;
// First parameter not realized yet.
// It should consist be residue if Content-Length is less then actual body length.
let = parse.unwrap;
assert_eq!;
// Via Header
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
// Body
assert_eq!;