Hello,

can you get a verbose debug log (debug=4)?

Thanks,
Daniel

On 9/10/10 1:58 PM, Miguel Baptista wrote:
Hi All,

I'm running kamailio-1.5.4-tls and I want to enable pike module in it.
I did some test but it isn't working properly. I mean it isn't acting according to the remove_latancy parameter. When an IP address is blocked (cause it triggered the pike module), it should be blocked for the amount of time (seconds I presumed) defined on the remove_latancy parameter, right? but it isn't

Here is my pike module config (it's just a test config)
 
#  ---- Pike --- /* we are usign default values. We should tunning it up */
modparam("pike", "sampling_time_unit", 30)    
modparam("pike", "reqs_density_per_unit", 10)
modparam("pike", "remove_latency", 3600)     
modparam("pike", "pike_log_level",-1)


and here is the output

Sep 10 13:33:35 sip /home/kamailio/sbin/kamailio[21414]: PIKE - BLOCKing ip XXX.XXX.XXX.XXX, node=0xb5a2eb58
Sep 10 13:33:35 sip /home/kamailio/sbin/kamailio[21414]: Warning: too many requests from XXX.XXX.XXX.XXX:5060
Sep 10 13:34:12 sip /home/kamailio/sbin/kamailio[21420]: PIKE - UNBLOCKing node 0xb5a2eb58
...

Sep 10 13:35:22 sip /home/kamailio/sbin/kamailio[21418]: PIKE - BLOCKing ip XXX.XXX.XXX.XXX,, node=0xb5a2eb58
Sep 10 13:35:22 sip /home/kamailio/sbin/kamailio[21418]: Warning: too many requests from XXX.XXX.XXX.XXX,:5060
Sep 10 13:36:12 sip /home/kamailio/sbin/kamailio[21420]: PIKE - UNBLOCKing node 0xb5a2eb58

Shouldn't it be blocked for 3600 seconds?
 
Then I changed the remove_latancy parameter to modparam("pike", "remove_latency", 334500)   

Sep 10 13:37:09 sip /home/kamailio/sbin/kamailio[21462]: PIKE - BLOCKing ip XXX.XXX.XXX.XXX,, node=0xb5986b90
Sep 10 13:37:09 sip /home/kamailio/sbin/kamailio[21462]: Warning: too many requests from XXX.XXX.XXX.XXX,:5060
Sep 10 13:37:52 sip /home/kamailio/sbin/kamailio[21466]: PIKE - UNBLOCKing node 0xb5986b90

but the it didn't seem to have any real difference.

Any ideas?

Best Regards,

Miguel Baptista
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com