Hi Alex, we've tested the suggested changes and it works great! 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.
Great job and thank you very much. BTW, Nir S. sends his regards. Cheers! -- Oded On Fri, Oct 25, 2019 at 8:06 PM Alex Balashov <abalas...@evaristesys.com> wrote: > On Fri, Oct 25, 2019 at 06:47:38PM +0300, Oded Arbel wrote: > > > Thanks for the reply. I haven't used add_contact_alias/handle_ruri_alias > > before - how would I make use of them? > > > > Should I call add_contact_alias() in the 200 reply route? And if so - > when > > do I call handle_ruri_alias()? > > Try set_contact_alias() (it might make more sense than > add_contact_alias() here, though they are substantially the same) in the > onreply_route handling both the 18x and the 200 OK, and call > handle_ruri_alias() in the section of the config with loose_route() > route and friends, which handles in-dialog request routing. > > One nice thing about handle_ruri_alias() is it silently returns if there > is no ;alias URI parameter, so you can call it without a bunch of > conditional logic around whether it is appropriate to call it. > > -- Alex > > -- > Alex Balashov | Principal | Evariste Systems LLC > > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > -- Oded Arbel CTO, VP R&D Cloudonix
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users