<div dir="ltr">Hi Alex, we've tested the suggested changes and it works great! <div><br></div><div>I've called `set_contact_alias()` in `reply_route` and `handle_ruri_alias()` in `if(loose_route()) ...`, and that solved the problem - the `ACK` is now sent correctly to the IP address that sent the reply.</div><div><br></div><div>Great job and thank you very much. </div><div><br></div><div>BTW, Nir S. sends his regards.</div><div><br></div><div>Cheers!</div><div>-- </div><div>Oded</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2019 at 8:06 PM Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Oct 25, 2019 at 06:47:38PM +0300, Oded Arbel wrote:<br>
<br>
> Thanks for the reply. I haven't used add_contact_alias/handle_ruri_alias<br>
> before - how would I make use of them?<br>
> <br>
> Should I call add_contact_alias() in the 200 reply route? And if so - when<br>
> do I call handle_ruri_alias()?<br>
<br>
Try set_contact_alias() (it might make more sense than<br>
add_contact_alias() here, though they are substantially the same) in the<br>
onreply_route handling both the 18x and the 200 OK, and call<br>
handle_ruri_alias() in the section of the config with loose_route()<br>
route and friends, which handles in-dialog request routing. <br>
<br>
One nice thing about handle_ruri_alias() is it silently returns if there<br>
is no ;alias URI parameter, so you can call it without a bunch of<br>
conditional logic around whether it is appropriate to call it.<br>
<br>
-- Alex<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Oded Arbel<div>CTO, VP R&D</div><div>Cloudonix</div></div></div>