<div dir="ltr"><div dir="auto">To set CPS limit you can use htable, store value in variable which get expired after sec, set its value when process invite and check its value before processing it. </div><div dir="auto"><br></div><div>Thanks </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Jul 2022, 12:34 am Sergiu Pojoga, <<a href="mailto:pojogas@gmail.com" target="_blank">pojogas@gmail.com</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"><div dir="ltr">Pipelimit module, specifically pl_check function is very much capable of doing CPS per GW, TAILDROP algorithm.<div><br></div><div><a href="https://www.kamailio.org/docs/modules/devel/modules/pipelimit.html#pipelimit.f.pl_check" rel="noreferrer" target="_blank">https://www.kamailio.org/docs/modules/devel/modules/pipelimit.html#pipelimit.f.pl_check</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 28, 2022 at 2:20 PM Jon Bonilla (Manwe) <<a href="mailto:manwe@sipdoc.net" rel="noreferrer" target="_blank">manwe@sipdoc.net</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">El Thu, 28 Jul 2022 18:08:33 +0000<br>
Henning Westerholt <<a href="mailto:hw@gilawa.com" rel="noreferrer" target="_blank">hw@gilawa.com</a>> escribió:<br>
<br>
> Hi,<br>
> <br>
> pipelimit allows dynamic queues from a DB. But if you want to limit<br>
> concurrent calls, the best option is probably using dialog profiles with the<br>
> dialog modules. For a cps limit you could also just use htable.<br>
> <br>
> Cheers,<br>
> <br>
<br>
Hi Henning<br>
<br>
No, concurrent calls is not the issue. CAPS is. <br>
<br>
pipelimit seems promising. Don't like the db backend requirement. I guess I can<br>
use dbtext, leave it blank and create pipes on demand with pl_check and read<br>
the limit from a custom header. This system doesn't have db backend as it's a<br>
loadbalancer for multiple kamailio servers and needs to be fast as hell. <br>
<br>
<br>
thank you<br>
<br>
Jon<br>
<br>
<br>
-- <br>
PekePBX, the multitenant PBX solution<br>
<a href="https://pekepbx.com" rel="noreferrer noreferrer" target="_blank">https://pekepbx.com</a><br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>