[SR-Users] Change Record Route onreply

Aidar Kamalov aidar.kamalov at gmail.com
Tue Aug 11 06:24:43 CEST 2020


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 at 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 at 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 at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>


-- 
Aydar A. Kamalov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200811/083ea12f/attachment.htm>


More information about the sr-users mailing list