<div dir="ltr">Hi,<div><br></div><div>I don't understand the trouble:</div><div>Wouldn't the following lead to the exact example:</div><div><br></div><div>listen=tls:<a href="http://1.2.3.4:8007">1.2.3.4:8007</a> advertise <a href="http://teams.tutpro.com:8007">teams.tutpro.com:8007</a></div><div>listen=tcp:<a href="http://1.2.3.4:5070">1.2.3.4:5070</a></div><div><br></div><div>As soon as you do:</div><div>$fs = "tcp:<a href="http://1.2.3.4:5070">1.2.3.4:5070</a>";</div><div>record_route();</div><div>(or put the other socket into $fs)</div><div><br></div><div>This results into two record-route headers, one with the hostname and one with the IP.</div><div><br></div><div>We use the Hostnames in all kinds of Record-Route and Via-Headers by doing exactly this.</div><div><br></div><div>Thanks,</div><div>Carsten</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">--</div><div dir="ltr">Carsten Bock I CTO & Founder</div><div dir="ltr"><br><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span lang="EN-US" style="color:black">ng-voice GmbH</span><span lang="EN-US" style="color:rgb(0,112,192)"><u></u><u></u></span></p><p style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm;background-image:initial;background-position:initial;background-repeat:initial"><span lang="EN-US" style="color:black">Trostbrücke 1 I 20457 Hamburg I Germany<br>T +49 40 524 75 93-40 | M +49 179 2021244 I <a href="http://www.ng-voice.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:black">www.ng-voice.com</span></a><u></u><u></u></span></p><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span lang="EN-US" style="color:black">Registry Office at Local Court Hamburg, HRB 120189<br>Managing Directors: Dr. David Bachmann, Carsten Bock</span></p></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 11. Feb. 2021 um 09:45 Uhr schrieb Juha Heinanen <<a href="mailto:jh@tutpro.com">jh@tutpro.com</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">Sergey Safarov writes:<br>
<br>
> Maybe need to move into more global changes...<br>
> <br>
> How about DNS hostname usage for all headers?<br>
> "Via", "Record-Route" maybe "Contact" when Kamailio with extra modules<br>
> play media?<br>
> <br>
> how about global directive like<br>
> header_with_hostname=tue<br>
<br>
I'm not sure if that is a good idea, since, for example, I would like to<br>
keep on using IP address <a href="http://127.0.0.1" rel="noreferrer" target="_blank">127.0.0.1</a>:<br>
<br>
Record-Route: <sip:<a href="http://teams.tutpro.com:8007" target="_blank">teams.tutpro.com:8007</a>;transport=tls;r2=on;lr;pm=0><br>
Record-Route: <sip:127.0.0.1:5070;transport=tcp;r2=on;lr;pm=0><br>
<br>
-- Juha<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>