Added convenience method for fetching Expires header.
Found but when parsing a SipURI. The port was not properly handled.
Added clone method to SipURI
Added convenience method setting integer based parameters.
Added Contact.builder.with(SipURI) since it is annoying to first build up an Address object.
Fixed SipParser.consumeGenericParameter. It wasnt parsing quoted strings.
Added a toString to SipPacket.
Fix for parsing header with empty values
The following wouldnt parse correctly:
X-Whatever: \r\n
Call-ID: asdfasdf
The value of X-Whatever became "Call-ID: asdfasdf" which obviously isnt correct. Im not 100% convinced this is even legal according to the BNF but doesnt matter since this is happening in the wild so have to deal with it.
The following wouldnt parse correctly:
X-Whatever: \r\n Call-ID: asdfasdf
The value of X-Whatever became "Call-ID: asdfasdf" which obviously isnt correct. Im not 100% convinced this is even legal according to the BNF but doesnt matter since this is happening in the wild so have to deal with it.