<div dir="ltr">Thanks Daniel, if that's the case we will re-write the from domain earlier in the logic<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 4, 2018 at 11:07 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jul 03, 2018 at 11:21:50PM +0100, Marrold wrote:<br>
> For interoperability reasons I need to re-write the From URI Domain ($fd)<br>
> in requests proxied by Kamailio to the source IP (socket) that Kamailio<br>
> will send them via.<br>
> <br>
> I have experimented with onsend_route and can successfully discover the<br>
> snd_ip, however it seems I am unable to rewrite the $fd, presumably because<br>
> I am too late in the logic.<br>
<br>
</span>Take a look at uac_replace_from:<br>
<a href="https://www.kamailio.org/docs/modules/5.1.x/modules/uac.html#uac.f.uac_replace_from" rel="noreferrer" target="_blank">https://www.kamailio.org/docs/<wbr>modules/5.1.x/modules/uac.<wbr>html#uac.f.uac_replace_from</a><br>
<br>
onsend_route is to late for this modification, you'll need to figure out<br>
what the ip is in request_route of branche routes.<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>