[Serusers] pike module question

Marian Dumitru marian.dumitru at voice-sistem.ro
Thu Mar 3 20:12:19 CET 2005


Paul,

if you want to do counting/limitation only for REGISTER, call the pike 
function only for REGISTER requests - maybe in (method=="REGISTER) block 
of your script, before doing auth/save.

Best regards,
Marian

Java Rockx wrote:
> Thanks Marian.
> 
> I was hoping there was a way to limit the sampling to only REGISTER
> messages. Anyhow, now I see how pike works.
> 
> Cheers,
> Paul
> 
> 
> On Thu, 03 Mar 2005 20:03:53 +0100, Marian Dumitru
> <marian.dumitru at voice-sistem.ro> wrote:
> 
>>Hi Java,
>>
>>Try:
>>
>>modparam("pike", "sampling_time_unit", 60)
>>modparam("pike", "reqs_density_per_unit", 20)
>>modparam("pike", "remove_latency", 120)
>>
>>This will block if the incoming traffic from a specific IP will exceed
>>20 req per minute. Note the will be no distinction between failed or
>>good requests.
>>
>>Best regards,
>>Marian
>>
>>Java Rockx wrote:
>>
>>>Hi All.
>>>
>>>Does anyone have a ser.cfg example for using the pike module to block
>>>SIP registration attempts when 20 failures per minute have been
>>>exceeded?
>>>
>>>Is this even possible wike pike?
>>>
>>>Regards,
>>>Paul
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>>--
>>Voice System
>>http://www.voice-system.ro
>>
> 
> 

-- 
Voice System
http://www.voice-system.ro




More information about the sr-users mailing list