Re: [reSIProcate] TransportSelector::findTransportByDest question
I'm not sure why things are they way they are - and perhaps they can be improved.
Looking at the code it seems that if you have multiple TLS transports then findTransportByDest will always fail (this looks intentional), and that findTransportBySource will be expected to find the correct TLS transport based on the TLS domain set in the SipMessage. See the first "if" block in findTransportBySource. It seems your app would need to call SipMessage::setTlsDomain in order for this to work with the transport selection code today.
It should be noted that if your app fills out the top Via, that is checked for before findTransportByDest - however this will never match a TLS transport with today's code.
Scott