jitsi/jitsi — pull request #2 by nicholasjbaker (2013-05-14 11:05:54+00:00)
Title: Do not send 'transport=tls' in the SIP request line.

Existing code sends SIP TLS requests that begin like:
REGISTER sip:;transport=tls SIP/2.0

This is bad behaviour because it specifies that TLS should be used for each hop in the network, but TLS should only be defined hop-to-hop.

We came across this problem because our SBC respected this option in the SIP REGISTER requests, and passed this on to our SIP server. We don't use TLS on the core side of our SBC so this failed with a 400 response from the server.

This change removes the 'transport=tls' option so the request would look like:
REGISTER sip: SIP/2.0

The change does not modify the contact or via headers in the SIP messages, just the request line.