<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="ltr">Thank you very much.</p>
<p dir="ltr">Sent by <a href="http://taps.io/outlookmobile">Outlook</a> for Android<br>
</p>
<br>
<br>
<br>
<div class="gmail_quote">On Sat, Sep 26, 2015 at 1:49 AM -0700, "Giovanni Maruzzelli"
<span dir="ltr"><<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>></span> wrote:<br>
<br>
</div>
<div>
<p dir="ltr"><br>
On Sep 26, 2015 9:08 AM, "Juan Pablo L." <<a href="mailto:jpablolorenzetti@hotmail.com">jpablolorenzetti@hotmail.com</a>> wrote:<br>
><br>
> Re-reading the instructions it seems that i misunderstood, and it seems that it is possible to use lua<br>
> on a particular profile without affecting the other profiles by manipulating the parameters<br>
> <param name="dialplan" value="XML"/><br>
> <param name="context" value="default"/><br>
><br>
> If i change those parameters i can make this particular profile use lua for user lookups/etc, and leave the other<br>
> profiles using XML statically.<br>
><br>
> is this what you meant by the freeswitch only solution right ? </p>
<p dir="ltr">Yep</p>
<p dir="ltr">About proxy servers, you can use kamailio or opensips, they have geoip modules.</p>
<p dir="ltr">-giovanni<br>
<br>
</p>
<p dir="ltr">><br>
> ________________________________<br>
> From: <a href="mailto:jpablolorenzetti@hotmail.com">jpablolorenzetti@hotmail.com</a><br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Date: Sat, 26 Sep 2015 06:47:31 +0000<br>
><br>
> Subject: Re: [Freeswitch-users] Filtering UA's IP<br>
><br>
> Giovanni, thank you for your prompt answers, <br>
><br>
> 1. do you have any suggestion for the proxy solution you mention ? what proxy can i use ?<br>
> 2. for the freeswitch only solution, any way to make lua capture the registration only for this particular profile? as oppossed to capture all registration for
<br>
> all profiles ?<br>
><br>
> thank you!<br>
> ________________________________<br>
> Date: Sat, 26 Sep 2015 08:23:25 +0200<br>
> From: <a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a><br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: Re: [Freeswitch-users] Filtering UA's IP<br>
><br>
> 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.<br>
><br>
> 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).<br>
><br>
> sent from my mobile,<br>
> Giovanni Maruzzelli<br>
> cell: +39 347 266 56 18<br>
><br>
> On Sep 26, 2015 8:12 AM, "Juan Pablo L." <<a href="mailto:jpablolorenzetti@hotmail.com">jpablolorenzetti@hotmail.com</a>> wrote:<br>
>><br>
>> Hi, is there any way on freeswitch to forbid registration (or any connection) from certain regions in the world ? ..
<br>
>> what i need to accomplish is to prevent people from connecting from my same country as we have a voip service<br>
>> 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.<br>
>> I can not use a router or FW or any other thing in front of the freeswitch because the same freeswitch also serves
<br>
>> other services that do not have this restriction. This restriction only affects users in one profile only.
<br>
>> I m aware that i could capture the registrations using a lua script and i guess from there i could consult<br>
>> a GeoIP database etc etc but that affects all profiles and not only this particular profile of this particular service<br>
>> and that could be a performance hit for the service as a whole so i would like to avoid that.<br>
>><br>
>> thank you!<br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
><br>
><br>
> _________________________________________________________________________ Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com">
http://www.freeswitchsolutions.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org">
http://www.freeswitch.org</a> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a> FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
><br>
> _________________________________________________________________________ Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com">
http://www.freeswitchsolutions.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org">
http://www.freeswitch.org</a> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a> FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</p>
</div>
</body>
</html>