<div dir="ltr">Dear 

Kingsley , <div>It can work if you talking about the options geting to you,</div><div>what about sending the options from you</div><div>in the cfg I set </div><div>modparam("dispatcher", "ds_ping_from", "sip:ping@PUBLIC_IP_1")<br></div><div>but I have PUBLIC_IP_X for different proposals.</div><div><br></div><div>thanks</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 7, 2021 at 12:52 PM Kingsley Tart <<a href="mailto:kingsley@dns99.co.uk">kingsley@dns99.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Yes I do this by setting t_on_reply("OPTIONS") when the request comes<br>
in and then create a route onreply_route[OPTIONS] that changes the<br>
headers in the response using remove_hf() and append_hf().<br>
<br>
If you want to handle the options request locally you could use<br>
append_to_reply() to append the additional headers to your reply.<br>
<br>
Note: I'm quite new to OpenSIPS so there may be a better way.<br>
<br>
Cheers,<br>
Kingsley.<br>
<br>
On Mon, 2021-06-07 at 12:13 +0300, Erez wrote:<br>
> Hey ,<br>
> I create a container with multi ip address , <br>
> now I need to reply to the options with different ip addresses ,but<br>
> all the options go from one interface with one ip address in the<br>
> options header<br>
> Is it possible to rewrite options param on the fly ?<br>
> <br>
> thanks in advance<br>
> Gataka<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>