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
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to