<div dir="auto">Many thanks for your advices. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Чт, 22 окт. 2020 г. в 18:44, Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi, Pavel!<br>
<br>
I think you can play with the T1 and T2 timers[1] to avoid, or at least <br>
control better the re transmissions, however note that these settings <br>
affect all transactions, not just the INVITE transaction one you're <br>
targeting. TBH, I wouldn't do that.<br>
<br>
Another possibility would be to completely avoid re-transmissions is to <br>
go stateless (instead of using t_relay(), just use send() and the <br>
generic onreply_route).<br>
<br>
However, the best way to achieve this, is to fix the redirect_server to <br>
be able to either send a 100 Trying within a reasonable time, or at <br>
least be able to absorb re-transmissions.<br>
<br>
In order to make sure you're only processing a single 300 Redirect, you <br>
can use a flag that says whether the redirect was processed or not, and <br>
only reprocess it if the flag is not set.<br>
<br>
[1] <a href="https://opensips.org/docs/modules/3.1.x/tm.html#param_T1_timer" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.1.x/tm.html#param_T1_timer</a><br>
<br>
Best regards,<br>
<br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 10/22/20 12:32 PM, Pavel Eremin wrote:<br>
> <br>
> Hi, community!<br>
> Is anyone can help me to understand how to avoid 2 situations:<br>
> <br>
> 1. I don't want to send retransmission (INVITE) from "opensips" to <br>
> "redirect" server, even "redirect" does not answer.<br>
> <br>
> 2. If I have sent a few invites to "redirect" , then i will receive a <br>
> few 300 Redirect messages, and "opensips" will generate branches for all <br>
> contacts in all "300 Redirect" messages. how can i ignore all "300 <br>
> Redirects".<br>
> <br>
> I am not sure that t_check_trans() can help me with that.<br>
> Thanks. I added a picture with the call flow I have.<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>
> <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></div>