<div dir="ltr">Thanks for the additional clarification Bogdan. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op do 7 mrt. 2019 om 10:48 schreef Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi John,<br>
<br>
For (2), there is nothing special you need to do - the double_rr is by <br>
default enabled and you just need to do record_route() - opensips is <br>
automatically figure out that there is a protocol changing and do a <br>
double RR headers.<br>
<br>
Regarding (1) and (3) - the proto info in RURI/destination is overriding <br>
the info in forced socket - if you have a explicit UDP destination, but <br>
a TLS socket forced, the socket will be discarded and a proper one (UDP) <br>
will be found.<br>
<br>
Shortly said, you need only (1).<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
<a href="https://www.opensips-solutions.com" rel="noreferrer" target="_blank">https://www.opensips-solutions.com</a><br>
OpenSIPS Summit 2019<br>
<a href="https://www.opensips.org/events/Summit-2019Amsterdam/" rel="noreferrer" target="_blank">https://www.opensips.org/events/Summit-2019Amsterdam/</a><br>
<br>
On 02/13/2019 11:15 AM, John Quick wrote:<br>
> Hi Johan,<br>
><br>
> I've configured Proxy servers to do this a few times.<br>
> You should do the following:<br>
> 1) For Requests going from TLS to UDP, change any occurrence of<br>
> "transport=tls" in the R-URI parameters. I use the following to do this:<br>
> subst_uri('/transport=tls/transport=udp/I');<br>
><br>
> 2) Make sure OpenSIPS adds correct Record-Route headers.<br>
> Default behaviour in this case is to add 2 RR headers when you call<br>
> record_route(). Make sure double_rr has not been disabled in the modparam<br>
> section.<br>
> One header describes the TLS socket and the other header describes the UDP<br>
> socket. These are needed for sequential Loose-Routed requests later in the<br>
> dialogue.<br>
><br>
> 3) Just before you relay the request over UDP, call the force_send_socket()<br>
> function. For example:<br>
> force_send_socket(udp:<a href="http://12.34.56.78:5060" rel="noreferrer" target="_blank">12.34.56.78:5060</a>);<br>
><br>
> Hope this helps.<br>
><br>
> John Quick<br>
> Smartvox Limited<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>