<div><div dir="auto">But that’s Kamaililio. He’s talking about openSIPS, and I can’t see that same param in opensips 2.4</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 2 Mar 2020 at 18:24, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<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)">Take a look at the pipe parameter:<br>
<a href="https://kamailio.org/docs/modules/5.4.x/modules/ratelimit.html#idp49883756" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.4.x/modules/ratelimit.html#idp49883756</a><br>
<br>
# define pipe 4 with a limit of 10000 pending bytes in the rx_queue<br>
#                                     using NETWORK algorithm<br>
modparam("ratelimit", "pipe", "4:NETWORK:10000")<br>
<br>
Hope this helps!<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<br>
On Mon, Mar 2, 2020 at 12:53 PM Jeff Pyle <<a href="mailto:jeff@ugnd.org" target="_blank">jeff@ugnd.org</a>> wrote:<br>
><br>
> But how does it work for the NETWORK algorithm?  The docs specifically mention a modparam, but even if that's not the case anymore, what unit is the limit one might specify with rl_check()?<br>
><br>
> More generally, how does one implement the NETWORK algorithm?<br>
><br>
><br>
> - Jeff<br>
><br>
><br>
> On Mon, Mar 2, 2020 at 12:19 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br>
>><br>
>> Jeff,<br>
>><br>
>> Yep, you’re totally right. The limit should be set when calling the check, I.e:<br>
>><br>
>> if (!rl_check("$rU", "50", "TAILDROP")) {<br>
>> sl_send_reply("503", "Server Unavailable");<br>
>> exit;<br>
>> };<br>
>><br>
>><br>
>><br>
>> On Mon, 2 Mar 2020 at 16:19, Jeff Pyle <<a href="mailto:jeff@ugnd.org" target="_blank">jeff@ugnd.org</a>> wrote:<br>
>>><br>
>>> This doesn't appear to have anything to do with a any type of limit or the network algorithm.  In fact, it says, "...and only affects the Taildrop and RED algorithms."  ?<br>
>>><br>
>>><br>
>>> - Jeff<br>
>>><br>
>>><br>
>>> On Mon, Mar 2, 2020 at 11:05 AM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br>
>>>><br>
>>>> <a href="https://opensips.org/html/docs/modules/2.4.x/ratelimit.html#param_limit_per_interval" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/2.4.x/ratelimit.html#param_limit_per_interval</a><br>
>>>><br>
>>>><br>
>>>> On Mon, 2 Mar 2020 at 15:54, Jeff Pyle <<a href="mailto:jeff@ugnd.org" target="_blank">jeff@ugnd.org</a>> wrote:<br>
>>>>><br>
>>>>> Hello,<br>
>>>>><br>
>>>>> The ratelimit doc page (v2.4) section 1.3.4 says the following:  "If the returned amount exceeds the limit specified in the modparam, rl_check returns an error."  The problem is I don't see a modparam to define the limit.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> - Jeff<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>
>>>> Regards,<br>
>>>><br>
>>>> David Villasmil<br>
>>>> email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a><br>
>>>> phone: +34669448337<br>
>>>><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>
>><br>
>> --<br>
>> Regards,<br>
>><br>
>> David Villasmil<br>
>> email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a><br>
>> phone: +34669448337<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>
> 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>
-- <br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" rel="noreferrer" target="_blank">http://www.voipembedded.com</a><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>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>