<div dir="ltr">Thanks Bogdan / Schneur,<div><br></div><div>Very helpful..</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 1:49 PM, Schneur Rosenberg <span dir="ltr"><<a href="mailto:rosenberg11219@gmail.com" target="_blank">rosenberg11219@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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<div><div class="h5"><br><br>On Tue, Feb 9, 2016 at 3:46 PM, Schneur Rosenberg <<a href="mailto:rosenberg11219@gmail.com" target="_blank">rosenberg11219@gmail.com</a>> wrote:<br>><br>> 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<br>><br>> On Feb 9, 2016 1:02 PM, "Bogdan-Andrei Iancu" <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<br>>><br>>> Hi Brian,<br>>><br>>> Only the development version (2.2) has such a function, is_ip_registered() :<br>>> <a href="http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294953" target="_blank">http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294953</a><br>>><br>>> 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).<br>>><br>>> Regards,<br>>><br>>> Bogdan-Andrei Iancu<br>>> OpenSIPS Founder and Developer<br>>> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>>><br>>> On 09.02.2016 11:41, Brian :: wrote:<br>>><br>>> Hi List<br>>><br>>> 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?<br>>><br>>> Thanks<br>>> Brian<br>>><br>>><br>>><br>>> _______________________________________________<br>>> Users mailing list<br>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>>><br>>><br>>><br>>> _______________________________________________<br>>> Users mailing list<br>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>>><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>