[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [SR-Users] Question on pike_check_ip(ipaddr)
From:       Fred Posner <fred () palner ! com>
Date:       2022-05-13 20:44:59
Message-ID: 9f637404-7431-267e-4b2c-00b71bc06877 () palner ! com
[Download RAW message or body]

On 5/13/22 16:38, Joel Serrano wrote:
> I was wondering if pike_check_ip(ipaddr) needs strictly an IP as 
> parameter or can it be a string?

pike_check_ip is when you want to use an IP other than the source ip...

You can always use an htable to store the ip's of your high volume 
clients...

something like:

if((src_ip!=myself) && ($sht(highvolcust=>$si) == $null)) {
	if (!pike_check_req()) {
		...
	}
}

--fred

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic