[OpenSIPS-Users] Pike Module Question

Schneur Rosenberg rosenberg11219 at gmail.com
Tue Feb 9 14:46:01 CET 2016


If you have no other choice you can always use avp_dp_query to check the
contact and received fields in the location table, if you're afraid from
too many mysql requests you can cache it with memcache etc
On Feb 9, 2016 1:02 PM, "Bogdan-Andrei Iancu" <bogdan at opensips.org> wrote:

> Hi Brian,
>
> Only the development version (2.2) has such a function, is_ip_registered()
> :
>
> http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294953
>
> Still you should not skip from pike checking the IPs where users did
> registered from. They can also do flood (by mistake or on purpose).
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 09.02.2016 11:41, Brian :: wrote:
>
> Hi List
>
> When checking incoming requests with pike how would I do a lookup to see
> if the IP belongs to a UA in the location table? ie - is there a function
> to check if request is from registered subscriber while using pike?
>
> Thanks
> Brian
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160209/2230c9a0/attachment.htm>


More information about the Users mailing list