Re: [SR-Users] transport=TLS

2011-12-02 Thread Bruno Bresciani
Hello I want to send over tls only when it comes via TLS, when some device doesn't specify the TLS protocol on R-URI ... Thank's for your reply!!! I wrote a other form to insert transport=tls at the kamailio.cfg, but you wrote an easier way to update R-URI Cheers 2011/12/2 Daniel-Constantin Mier

Re: [SR-Users] transport=TLS

2011-12-02 Thread Daniel-Constantin Mierla
Hello, On 12/2/11 12:48 PM, Bruno Bresciani wrote: Hello Is attached the diagram showing the call flow... I have a cell phone with Android and Bria softphone registered on kamailio via TLS protocol. When I make a call by Bria, this INVITE is routed of the kamailio to gateway SIP via UDP prot

Re: [SR-Users] transport=TLS

2011-12-02 Thread Bruno Bresciani
Hello Is attached the diagram showing the call flow... I have a cell phone with Android and Bria softphone registered on kamailio via TLS protocol. When I make a call by Bria, this INVITE is routed of the kamailio to gateway SIP via UDP protocolo because Bria specified transport=TLS only contact h

Re: [SR-Users] transport=TLS

2011-12-01 Thread Daniel-Constantin Mierla
Hello, On 11/30/11 11:59 AM, Bruno Bresciani wrote: Now I understood why the messagem is forward with UDP protocol... This problem occurs with bria on android plataform, this softphone send the INVITE request with tls protocol specified only on the contact header. Contact: "XXX" . as Daniel

Re: [SR-Users] transport=TLS

2011-11-30 Thread Bruno Bresciani
Now I understood why the messagem is forward with UDP protocol... This problem occurs with bria on android plataform, this softphone send the INVITE request with tls protocol specified only on the contact header. Contact: "XXX" . as Daniel pointed out, "The contact header address is not used for

Re: [SR-Users] transport=TLS

2011-11-29 Thread Daniel-Constantin Mierla
On 11/29/11 6:24 PM, Bruno Bresciani wrote: Thank's for attention Andrew I'm reading the source code of tm module to try understand better this behavior... I can't understand what meaning that "the outbound proxy address is set"... where I define this address? Outbound proxy address is sto

Re: [SR-Users] transport=TLS

2011-11-29 Thread Daniel-Constantin Mierla
On 11/29/11 6:07 PM, Andrew Pogrebennyk wrote: Bruno, the address from contact header is put into R-URI on outgoing request to that user. The contact header address is not used for routing SIP requests, only Route headers and R-URI addresses -- all SIP requests may have a contact header, fo

Re: [SR-Users] transport=TLS

2011-11-29 Thread Daniel-Constantin Mierla
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 destin

Re: [SR-Users] transport=TLS

2011-11-29 Thread Bruno Bresciani
Thank's for attention Andrew I'm reading the source code of tm module to try understand better this behavior... I can't understand what meaning that "the outbound proxy address is set"... where I define this address? 2011/11/29 Andrew Pogrebennyk > Bruno, > the address from contact header is p

Re: [SR-Users] transport=TLS

2011-11-29 Thread Andrew Pogrebennyk
Bruno, the address from contact header is put into R-URI on outgoing request to that user. This is where I catch that parameter. I think we should debug why kamailio sends the request using UDP, it is not clear, as Daniel pointed out it should work automatically. I think I had to do these manipulat

Re: [SR-Users] transport=TLS

2011-11-29 Thread Bruno Bresciani
In my case the transport=TLS is present in contact header, has the same treatment of R-URI? Cheers 2011/11/29 Daniel-Constantin Mierla > > > 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("t

Re: [SR-Users] transport=TLS

2011-11-29 Thread Daniel-Constantin Mierla
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 thin

Re: [SR-Users] transport=TLS

2011-11-29 Thread Andrew Pogrebennyk
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 c

[SR-Users] transport=TLS

2011-11-29 Thread Bruno Bresciani
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. Cheers ___ SIP Express Router (SER) an