[SR-Dev] TLS patch for the TM module

Nils Ohlmeier lists at ohlmeier.org
Thu May 21 08:23:50 CEST 2009


Hi,

while testing TLS at SIPit 24 I encoutered the following problem:

Two UAs were successfully registered via TLS connections and they had
Contacts with just IP addresses and the transport parameter set to TLS.
If one UA tried to call the other the INVITE was rejected by the TM
module with the following log message:

ERROR: uri2dst: bad transport  for sips uri: 3

So when I looked up which is transport 3 I was surprised to see the 3 is
actually TLS. Which is absolutely the right transport for a SIPS URI.
The if condition before this error message checks if the transport is
equal to TCP. This makes no sense to me.

Thus I assume that this if condition was just a typo and created the
attached patch which fixes this issue in 3 places in ut.h.

Please let me know if I can commit the attached patch.

Cheers
  Nils
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tm_ut.patch
Url: http://lists.sip-router.org/pipermail/sr-dev/attachments/20090521/3c1c863b/attachment.asc 


More information about the sr-dev mailing list