for kamailio, rtpengine, asterisk and clients on locahost. Docker is on Linux and Windows.

I have configured onreply route, not sure if it is a right way, but looks like it works as I need.
if (ds_is_from_list()) {
     remove_hf("Record-Route");
     append_hf("Record-Route: <sip:127.0.0.1:5060>\r\n");
}

пн, 10 авг. 2020 г. в 17:25, Alex Balashov <abalashov@evaristesys.com>:
Why do you want to do this?


Sent from mobile, with due apologies for brevity and errors.

> On Aug 10, 2020, at 6:35 AM, Aidar Kamalov <aidar.kamalov@gmail.com> wrote:
>
> 
> Hello,
>
> I have kamailio with only one interface. Is it possible to set one RR - lan ip address to INVITEs (to dispatcher list members) and 127.0.0.1 to replies 200OK (to softphone)?
> I can't use record_route() function in onreply route because:  Command cannot be used in the block.
>
> --
> Aydar A. Kamalov
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Aydar A. Kamalov