<div dir="auto">You may introduce advertise command in the configuration files when defining the interfaces<div dir="auto"><br><div dir="auto"><br></div><div dir="auto">Like this way :</div><div dir="auto">listen=private ip advertise public ip</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 3, 2018, 4:52 PM Asgaroth <<a href="mailto:00asgaroth00@gmail.com">00asgaroth00@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I've come accros a scenario where a proxy is sitting on a private <br>
address range and inserts a record-route specifying the the private address.<br>
<br>
This causes issues whereby the BYE to an INVITE attempts to relay to the <br>
private address defined in record-route.<br>
<br>
I was wondering, if we were inject a received and rport parameter into <br>
the record-route header of the original invite, whould kamailio relay <br>
the response (BYE) to the receive/rport destination instead of the uri <br>
defined in the record-route header.<br>
<br>
As an example, initial invite comes in with a record-route as follows:<br>
<br>
Record-Route: <sip:172.17.0.2:5062;lr;ftag=b4551d29><br>
<br>
If we injected received and rport as follows:<br>
<br>
Record-Route: <br>
<sip:172.17.0.2:5062;lr;ftag=b4551d29;rport=33429;received=212.172.2.212><br>
<br>
and relayed the message to the B2B.<br>
<br>
Then, I assume, when the B2B creates its BYE message, the Route header <br>
should look like this:<br>
<br>
Route: <br>
<sip:172.17.0.2:5062;lr;ftag=b4551d29;rport=33429;received=212.172.2.212><br>
<br>
Once this hits the kamailio instance to relay to the last route header <br>
as mentioned above, would it set $du to received:rport like it does with <br>
Via headers?<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>