[SR-Users] Question on pike_check_ip(ipaddr)

Joel Serrano joel at textplus.com
Fri May 13 22:38:00 CEST 2022


Hello,

One of our customers has lots of extensions that register to our platform
using all the same IP. Sometimes they get caught in our pike velocity rules
but if we increase the values to accommodate this client then all the
others could abuse the system.

I was wondering if pike_check_ip(ipaddr) needs strictly an IP as
parameter or can it be a string?

I was thinking of using pike instead of by $si by something like $fU-$si
but I don't know if this would work?

I need to either handle separately different extensions from the same IP or
a way to adjust the pike config values just for one specific IP... I'm not
sure either of these is possible with pike?

My alternative is just use table and mimic the functionality myself which I
don't think is too complicated, but I'd love to know if I'm missing a
fast-path here...

Thanks!
Joel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220513/0679db55/attachment.htm>


More information about the sr-users mailing list