[OpenSIPS-Users] Pike Module Question

Brian :: bc at iptel.co
Wed Feb 17 20:40:23 CET 2016


Thanks Bogdan / Schneur,

Very helpful..

On Tue, Feb 9, 2016 at 1:49 PM, Schneur Rosenberg <rosenberg11219 at gmail.com>
wrote:

> Also if caching you will need to refresh it pretty often because customers
> IP might change, or wait for the is_ip_registered() is available in a
> stable version
>
>
> On Tue, Feb 9, 2016 at 3:46 PM, Schneur Rosenberg <
> rosenberg11219 at gmail.com> wrote:
> >
> > 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 Developer
> >> http://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 list
> >> Users at lists.opensips.org
> >> http://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
> >>
>
> _______________________________________________
> 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/20160217/66a8610d/attachment.htm>


More information about the Users mailing list