On 11/29/11 5:38 PM, Bruno Bresciani wrote:
In my case the transport=TLS is present in contact header, has the same treatment of R-URI?
If it is the contact header in a request has the SIP address with transport TLS, then that is not used for routing. The only header than can enforce a destination is Route. Otherwise, the request URI (the address in first line of SIP request) is used for routing.

The contact header address is to inform the other party where to send back requests within same dialog.

Cheers,
Daniel

Cheers

2011/11/29 Daniel-Constantin Mierla <miconda@gmail.com>


On 11/29/11 3:08 PM, Andrew Pogrebennyk wrote:
Hi Bruno,
What I have done is an explicit check
if (uri_param("transport","tls") || uri_param("transport","TLS"))
to call force_send_socket with either udp or tls port.
It would be cool for kamailio to select the proper socket automatically,
I think there was a discussion on that previously but I can't find it
right now. Hopefully someone else has a hint :)

On 11/29/2011 02:50 PM, Bruno Bresciani wrote:
Hi All,

kamailio 3.1.2 recognize value "transport=TLS" on contact header or only
"transport=tls"?

kamailio forwards (t_relay function) the message with UDP protocol when
value "transport=TLS" is on contact header.
Kamailio is selecting the proper outbound socket when switching transport layers -- if the call comes via UDP and R-URI is over TLS, then it will send over TLS. Parsing of R-URI does case insensitive matching for transport parameter, so TLS is the same as tls. I have many configs doing transport gatewaying, where I don't use anything but simply t_relay()

Can you check to see if there is no outbound proxy address set ($du)?

Ultimately, maybe you can run with debug=3 and look at log messages.

Cheers,
Daniel

--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda