[SR-Users] Re-write From URI Domain ($fd) with source IP or relayed message

Marrold kamailio at marrold.co.uk
Wed Jul 4 15:27:05 CEST 2018


Thanks Daniel, if that's the case we will re-write the from domain earlier
in the logic


On Wed, Jul 4, 2018 at 11:07 AM, Daniel Tryba <d.tryba at pocos.nl> wrote:

> On Tue, Jul 03, 2018 at 11:21:50PM +0100, Marrold wrote:
> > For interoperability reasons I need to re-write the From URI Domain ($fd)
> > in requests proxied by Kamailio to the source IP (socket) that Kamailio
> > will send them via.
> >
> > I have experimented with onsend_route and can successfully discover the
> > snd_ip, however it seems I am unable to rewrite the $fd, presumably
> because
> > I am too late in the logic.
>
> Take a look at uac_replace_from:
> https://www.kamailio.org/docs/modules/5.1.x/modules/uac.
> html#uac.f.uac_replace_from
>
> onsend_route is to late for this modification, you'll need to figure out
> what the ip is in request_route of branche routes.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180704/a35443cb/attachment.html>


More information about the sr-users mailing list