[SR-Users] Limit cps per destination gw

M Arqum CH marqumch at gmail.com
Fri Jul 29 12:19:20 CEST 2022


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.

Thanks

On Fri, 29 Jul 2022, 12:34 am Sergiu Pojoga, <pojogas at gmail.com> wrote:

> Pipelimit module, specifically pl_check function is very much capable of
> doing CPS per GW, TAILDROP algorithm.
>
>
> https://www.kamailio.org/docs/modules/devel/modules/pipelimit.html#pipelimit.f.pl_check
>
> On Thu, Jul 28, 2022 at 2:20 PM Jon Bonilla (Manwe) <manwe at sipdoc.net>
> wrote:
>
>> El Thu, 28 Jul 2022 18:08:33 +0000
>> Henning Westerholt <hw at gilawa.com> escribió:
>>
>> > Hi,
>> >
>> > pipelimit allows dynamic queues from a DB. But if you want to limit
>> > concurrent calls, the best option is probably using dialog profiles
>> with the
>> > dialog modules. For a cps limit you could also just use htable.
>> >
>> > Cheers,
>> >
>>
>> Hi Henning
>>
>> No, concurrent calls is not the issue. CAPS is.
>>
>> pipelimit seems promising. Don't like the db backend requirement. I guess
>> I can
>> use dbtext, leave it blank and create pipes on demand with pl_check and
>> read
>> the limit from a custom header. This system doesn't have db backend as
>> it's a
>> loadbalancer for multiple kamailio servers and needs to be fast as hell.
>>
>>
>> thank you
>>
>> Jon
>>
>>
>> --
>> PekePBX, the multitenant PBX solution
>> https://pekepbx.com
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>   * sr-users at lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>> Edit mailing list options or unsubscribe:
>>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220729/59727b6b/attachment.htm>


More information about the sr-users mailing list