<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<br><br>On Tue, Feb 9, 2016 at 3:46 PM, Schneur Rosenberg &lt;<a href="mailto:rosenberg11219@gmail.com">rosenberg11219@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; 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&#39;re afraid from too many mysql requests you can cache it with memcache etc<br>&gt;<br>&gt; On Feb 9, 2016 1:02 PM, &quot;Bogdan-Andrei Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Hi Brian,<br>&gt;&gt;<br>&gt;&gt; Only the development version (2.2) has such a function, is_ip_registered() :<br>&gt;&gt;     <a href="http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294953">http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id294953</a><br>&gt;&gt;<br>&gt;&gt; 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>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt;<br>&gt;&gt; Bogdan-Andrei Iancu<br>&gt;&gt; OpenSIPS Founder and Developer<br>&gt;&gt; <a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>&gt;&gt;<br>&gt;&gt; On 09.02.2016 11:41, Brian :: wrote:<br>&gt;&gt;<br>&gt;&gt; Hi List<br>&gt;&gt;<br>&gt;&gt; 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>&gt;&gt;<br>&gt;&gt; Thanks<br>&gt;&gt; Brian<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;<br></div>