<div dir="ltr"><div dir="ltr">Alex, hi5, it was right in front of me, not sure how I missed the <i>enable_r2</i> setting...<div><br></div><div>Initially though out-of-dialog requests would not follow the pre-loaded Route set. After some digging, the solution was to <i>loose_route()</i> those, since they were falling under an exception:</div><div><br></div><div><i>"There is only one exception: If the request is out-of-dialog (no to-tag) and there is only one Route: header indicating the local proxy, then the Route: header is removed and the function returns FALSE"</i></div><div><i><br></i></div><div>Much obliged.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 3, 2018 at 10:29 PM Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sergiu,<br>
<br>
The purpose of the Path header is to tell the upstream registrar that<br>
the registered Contact must be reached through an adjacent hop, which<br>
requires only one Path header with the address of one interface, since<br>
it's only used for "inbound" calls.<br>
<br>
That interface should be the egress interface, but if it's not, you can<br>
always add your own Path header manually:<br>
<br>
append_hf("Path: <sip:your.desired.interface;lr>\r\n");<br>
<br>
That said, if you are determined to reason about this in the manner of<br>
you originally proposed, have a look at this option:<br>
<br>
<a href="https://kamailio.org/docs/modules/5.1.x/modules/path.html#path.p.enable_r2" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.1.x/modules/path.html#path.p.enable_r2</a><br>
<br>
-- Alex<br>
<br>
On Wed, Oct 03, 2018 at 10:21:03PM -0400, Sergiu Pojoga wrote:<br>
<br>
> Hi again,<br>
> <br>
> When acting as an intermediary proxy for a non-colocated Registrar, the<br>
> REGISTER request coming in on one port and going out on another, shouldn't<br>
> the *add_path[received]()* generate *two* nodes in the Path header?<br>
> Otherwise, how are the subsequent requests supposed to be routed back to<br>
> the UAC?<br>
> <br>
> Scenario with Kamailio proxy on IP 1.1.1.1 with dual port listeners<br>
> UAC => proxy:5070 <=> proxy:5060 => Registrar:5060<br>
> <br>
> Path: <sip:1.1.1.1;lr;received=sip:<a href="http://123.123.123.123:59593" rel="noreferrer" target="_blank">123.123.123.123:59593</a>><br>
> <br>
> I would expect it to be something like:<br>
> Path: <sip:1.1.1.1;lr>,<sip:<a href="http://1.1.1.1" target="_blank">1.1.1.1</a>:5070;lr;received=sip:<br>
> <a href="http://123.123.123.123:59593" rel="noreferrer" target="_blank">123.123.123.123:59593</a>><br>
> <br>
> modparam("rr", "enable_double_rr", 1)<br>
> modparam("path", "use_received", 1)<br>
> <br>
> Merci!<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>
<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><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>