You can.put a sip proxy in front of FreeSWITCH. You can also have the proxy running only on the address-port of the profile you want to protect. Otoh, for a freeswitch only solution, lua is very much performing, and a query on indexed table for geoip is not much taxing, and has to be made anyway (eg, in proxy case too). sent from my mobile, Giovanni Maruzzelli cell: +39 347 266 56 18 On Sep 26, 2015 8:12 AM, "Juan Pablo L." <jpablolorenzetti@hotmail.com> wrote:
Hi, is there any way on freeswitch to forbid registration (or any connection) from certain regions in the world ? .. what i need to accomplish is to prevent people from connecting from my same country as we have a voip service that is supposed to be accessed only when you are out of the country so i need to validate the UA's ip when registering. I can not use a router or FW or any other thing in front of the freeswitch because the same freeswitch also serves other services that do not have this restriction. This restriction only affects users in one profile only. I m aware that i could capture the registrations using a lua script and i guess from there i could consult a GeoIP database etc etc but that affects all profiles and not only this particular profile of this particular service and that could be a performance hit for the service as a whole so i would like to avoid that.
thank you!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org