Re: [OpenSIPS-Users] Pike Module Question
Thanks Bogdan / Schneur, Very helpful.. On Tue, Feb 9, 2016 at 1:49 PM, Schneur Rosenberg 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 < > rosenberg11...@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" > 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@lists.opensips.org > >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >> > >> > >> > >> ___ > >> Users mailing list > >> Users@lists.opensips.org > >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >> > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Pike Module Question
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 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" 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@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Pike Module Question
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" 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@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Pike Module Question
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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users