Hey Paul,
Thanks for your feedback! In this case the call will come in via UDP (so it has 2 record route headers). I can still play tricks like reading the record-route headers but, I was in some way hoping that is the responsibility of loose_route() function to properly use the right protocol out of route headers since we are a proxy.
Cheers, DanB
On 14.11.2014 12:00, sr-users-request@lists.sip-router.org wrote:
Message: 3 Date: Thu, 13 Nov 2014 16:55:18 +0530 From: Varghese Paulvarghesepaul87@gmail.com To: "Kamailio (SER) - Users Mailing List" sr-users@lists.sip-router.org Subject: Re: [SR-Users] UDP-TCP bridging in-dialog SUBSCRIBE Message-ID: CAM33Ch4furD1FM-ZNKfbQ0nXNQd88BmzW73gjjb=cVyuC0K=8w@mail.gmail.com Content-Type: text/plain; charset="utf-8"
Hi Dan,
You can check the transport value in the RURI and relay the SIP message as tcp.
if ($*rP* == "tcp"){ t_relay_to_tcp() }
Regards
Varghese Paul
Hi Dan,
My suggestion will work only if you are routing the call by checking lookup location. If you are using kamailio as a proxy i am not sure how will you check the transport protocol.
Can you explain your call routing set in detail ?
Regards
On Fri, Nov 14, 2014 at 4:39 PM, Dan Christian Bogos danb.lists@gmail.com wrote:
Hey Paul,
Thanks for your feedback! In this case the call will come in via UDP (so it has 2 record route headers). I can still play tricks like reading the record-route headers but, I was in some way hoping that is the responsibility of loose_route() function to properly use the right protocol out of route headers since we are a proxy.
Cheers, DanB
On 14.11.2014 12:00, sr-users-request@lists.sip-router.org wrote:
Message: 3 Date: Thu, 13 Nov 2014 16:55:18 +0530 From: Varghese Paul varghesepaul87@gmail.com varghesepaul87@gmail.com To: "Kamailio (SER) - Users Mailing List" sr-users@lists.sip-router.org sr-users@lists.sip-router.org Subject: Re: [SR-Users] UDP-TCP bridging in-dialog SUBSCRIBE Message-ID: CAM33Ch4furD1FM-ZNKfbQ0nXNQd88BmzW73gjjb=cVyuC0K=8w@mail.gmail.com CAM33Ch4furD1FM-ZNKfbQ0nXNQd88BmzW73gjjb=cVyuC0K=8w@mail.gmail.com Content-Type: text/plain; charset="utf-8"
Hi Dan,
You can check the transport value in the RURI and relay the SIP message as tcp.
if ($**rP** == "tcp"){ t_relay_to_tcp() }
Regards
Varghese Paul
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
Hey Guys,
For those of you familiar with internal mechanism of add_contact_alias, I got a question/issue:
I have noticed that if add_contact_alias is called without any parameters it will not work (eg: not add the alias parameter in contact) in case of ip/port/transport of the received messages are matching what the contact declares. On the other hand if I use add_contact_alias("$si", "$sp", "$proto"), the contact alias will be always enforced. Due to way routing works in my case I would need always the alias to be added. Am I forced to pass the parameters, eg the desired behaviour is to only add contact alias on need and not enforce?
Ta for any kind of tip!
DanB
Dan Christian Bogos writes:
I have noticed that if add_contact_alias is called without any parameters it will not work (eg: not add the alias parameter in contact) in case of ip/port/transport of the received messages are matching what the contact declares. On the other hand if I use add_contact_alias("$si", "$sp", "$proto"), the contact alias will be always enforced. Due to way routing works in my case I would need always the alias to be added. Am I forced to pass the parameters, eg the desired behaviour is to only add contact alias on need and not enforce?
if you want to be sure that contact alias is added even if it would not add any value, you need to use it with parameters.
-- juha
Hey Juha,
Thanks for your promt answer! All clear now. I just wanted to make sure I optimize my config to maximum (sparing characters inthere ;)). Maybe someone can update the documentation since using/not using the params can influence the behaviour.
Cheers, DanB
if you want to be sure that contact alias is added even if it would not add any value, you need to use it with parameters.
-- juha