<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>I tried calling the function pl_check , this is how I'm trying to use.</p>
<p><br>
</p>
<p><span>$var(check_result) = pl_check("$avp(s:LOGIN)");</span><br>
</p>
<p><span><br>
</span></p>
<p><span>This is always returning -2, shouldn't it create a new PIPE next time it receives a message from the same login?</span></p>
<p><span>I'm using Kamailio 4.1, could that be the difference?</span></p>
<p><span><br>
</span></p>
<p><span>Thanks,</span></p>
<p><span>Nitesh</span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.sip-router.org> on behalf of Alex Balashov <abalashov@evaristesys.com><br>
<b>Sent:</b> Friday, July 15, 2016 1:54:49 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Rate limiting</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I have never used pipelimit with a database. <br>
<br>
The essence is the ability to pass a dynamic pipe to pl_check() which is created if it doesn't exist.
<br>
<br>
On July 15, 2016 4:59:01 AM EDT, NITESH BANSAL <nitesh.bansal@outlook.com> wrote:<br>
>Hi Alex,<br>
><br>
><br>
>I looked at the pipelimit module and apparently it relies on database,<br>
>for performance reasons, I want to avoid DB looks and want to maintain<br>
><br>
>something in-memory, just like 'Pike' does for source-ip limiting.<br>
><br>
>Is there any way to do that in Kamailio?<br>
><br>
><br>
>Nitesh<br>
><br>
>________________________________<br>
>From: sr-users <sr-users-bounces@lists.sip-router.org> on behalf of<br>
>Alex Balashov <abalashov@evaristesys.com><br>
>Sent: Wednesday, July 13, 2016 3:47:32 PM<br>
>To: sr-users@lists.sip-router.org<br>
>Subject: Re: [SR-Users] Rate limiting<br>
><br>
>The pipelimit module is the solution to all your problems.<br>
><br>
>On 07/13/2016 04:09 AM, NITESH BANSAL wrote:<br>
><br>
>> Actually, I forgot to mention that, I'm looking for a Kamailio module<br>
>> which can do that.<br>
>><br>
>> I want to avoid doing it on the application level (in perl/python).<br>
>><br>
>><br>
>> Thanks,<br>
>><br>
>> Nitesh<br>
>><br>
>><br>
>------------------------------------------------------------------------<br>
>> *From:* sr-users <sr-users-bounces@lists.sip-router.org> on behalf of<br>
>> NITESH BANSAL <nitesh.bansal@outlook.com><br>
>> *Sent:* Tuesday, July 12, 2016 10:19:35 AM<br>
>> *To:* sr-users@lists.sip-router.org<br>
>> *Subject:* [SR-Users] Rate limiting<br>
>><br>
>> Hello,<br>
>><br>
>><br>
>> I plan to add some rate limiting in the Kamailio. I'm already using<br>
>> *Pike* to rate limit based on the source IP.<br>
>><br>
>> But in this case, i want to do the rate limiting per<br>
>customer(regardless<br>
>> of the source IP), I can identify the customer based on a custom<br>
>><br>
>> header in the INVITE, idea is to limit the customer to 'x' number of<br>
>> requests per second.<br>
>><br>
>><br>
>> Nitesh<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
>list<br>
>> sr-users@lists.sip-router.org<br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
><br>
><br>
>--<br>
>Alex Balashov | Principal | Evariste Systems LLC<br>
>1447 Peachtree Street NE, Suite 700<br>
>Atlanta, GA 30309<br>
>United States<br>
><br>
>Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br>
>Web: <a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/">
http://www.csrpswitch.com/</a><br>
><br>
>_______________________________________________<br>
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>sr-users@lists.sip-router.org<br>
><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
>------------------------------------------------------------------------<br>
><br>
>_______________________________________________<br>
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>sr-users@lists.sip-router.org<br>
><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
-- Alex<br>
<br>
--<br>
Principal, Evariste Systems LLC (<a href="http://www.evaristesys.com">www.evaristesys.com</a>)<br>
<br>
Sent from my Google Nexus.<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
sr-users@lists.sip-router.org<br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</span></font>
</body>
</html>