15 Sep 2011 15:01
Using TLS in the first hop - Bug in RFC 5630
Iñaki Baz Castillo <ibc <at> aliax.net>
2011-09-15 13:01:22 GMT
2011-09-15 13:01:22 GMT
Hi, there is a general confusion about the usage of TLS transport and SIPS schema. Even more when the RFC 5630 (which tries to clarify it) contains an important bug: RFC 5630 states: ------------------------------------------------------------------- 3.1.3. Using TLS with SIP Instead of SIPS [...] If one wants to use "best-effort TLS" for SIP, one just needs to use a SIP URI, and send the request over TLS. Using SIP over TLS is very simple. A UA opens a TLS connection and uses SIP URIs instead of SIPS URIs for all the header fields in a SIP message (From, To, Request-URI, Contact header field, Route, etc.). When TLS is used, the Via header field indicates TLS. ------------------------------------------------------------------- So an example of INVITE sent via TLS just for the first hop would be: INVITE sip:bob <at> biloxi.com SIP/2.0 Via: SIP/2.0/TLS 1.2.3.4 From: sip:alice <at> atlanta.com Contact: sip:alice <at> 1.2.3.4;transport=tcp Note that I've set "sip" schema in the Contact URI (as the spec says) so incoming in-dialog request would be received by the caller (alice) via TCP rather than TLS !!!(Continue reading)
RSS Feed