Just tried, here are the results:

- if I set max-registrations-per-extension to 2 everything works fine and the phone can succesfully call

- if I set max-registrations-per-extension to 1 and call extension 1000 from extension 2000 I get the "FORBIDDEN" response on phone 2000 and fs print this on his log:

2012-11-13 09:15:05.368001 [DEBUG] sofia.c:7847 IP 192.168.2.246 Rejected by acl "domains". Falling back to Digest auth.
2012-11-13 09:15:05.368001 [WARNING] sofia_reg.c:1446 SIP auth challenge (INVITE) on sofia profile 'internal' for [1000@192.168.2.40] from ip 192.168.2.246
2012-11-13 09:15:05.488001 [DEBUG] sofia.c:7847 IP 192.168.2.246 Rejected by acl "domains". Falling back to Digest auth.
2012-11-13 09:15:05.488001 [WARNING] sofia_reg.c:2575 SIP auth failure (REGISTER) due to reaching max allowed registrations.  Count: 1
2012-11-13 09:15:05.488001 [WARNING] sofia_reg.c:1391 SIP auth failure (INVITE) on sofia profile 'internal' for [1000@192.168.2.40] from ip 192.168.2.246



Il 13/11/2012 08:52, alberto Villa ha scritto:
No, I haven't tried it yet, just give me some time and  I will try with a value of 2 or 3 and will provide some more info from fs log. What I wanted to achieve when I set this parameter was to forbid any registration following the first for any enabled extension: if A successfully registers with ID ID_A and then B try to register with ID_A I wanted the registration of B to be rejected (as successfully is when I set max-registrations-per-extension parameter to 1).

Alberto


Il 12/11/2012 20:03, Michael Collins ha scritto:
So the same phone that registers successfully cannot make outbound calls? Just for the sake of testing, have you tried setting the max registrations value to "2" or "3" and test again?

-MC

On Mon, Nov 12, 2012 at 8:39 AM, alberto Villa <a.villa@seletech.com> wrote:
Hello, I found that if I set the "max-registrations-per-extension"
parameter for an extension 2000 as follows

 <param name="max-registrations-per-extension" value="1"/>

in the <params> section of this account .xml file, then this phone
cannot execute any call as the server response is always "forbidden".

Is this a bug? if not why a call of an already registered user sholud
trigger on such parameter?

I'm using FreeSWITCH version: 1.2.0 (git-b3b2c37 2012-05-18 13-41-16 -0500)

Thanks in advance

Alberto

--
Dr. Villa Alberto
Sw Engineer

SeleTech srl
via Collodi, 8 20052 Monza (MI)
tel: +39 039 5962000
fax: +39 039 9716905
email: a.villa@seletech.com
web: www.seletech.com
     www.seletech.eu

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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


-- 
Dr. Villa Alberto
Sw Engineer

SeleTech srl
via Collodi, 8 20052 Monza (MI)
tel: +39 039 5962000
fax: +39 039 9716905
email: a.villa@seletech.com
web: www.seletech.com
     www.seletech.eu 


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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


-- 
Dr. Villa Alberto
Sw Engineer

SeleTech srl
via Collodi, 8 20052 Monza (MI)
tel: +39 039 5962000
fax: +39 039 9716905
email: a.villa@seletech.com
web: www.seletech.com
     www.seletech.eu