Thanks for your reply. I have checked db already but db looks good.


freeswitch@internal> sofia status profile internal reg
Registrations:
=================================================================================================
Call-ID:        7d71ae1483727841@dmlld3BvaW50
User:           yuriytest@192.168.187.131
Contact:        "yuriytest" <sip:yuriytest@192.168.187.1:6065;rinstance=b8a55c925b109a19>
Agent:          Telphin Softphone release 3015c stamp 31720
Status:         Registered(UDP)(unknown) EXP(2012-02-11 07:51:48) EXPSECS(1415)
Host:           localhost.localdomain
IP:             192.168.187.1
Port:           6065
Auth-User:      yuriytest
Auth-Realm:     192.168.187.131
MWI-Account:    yuriytest@192.168.187.131

Call-ID:        800D3057-E054-E111-B98C-001CF0118229@192.168.187.1
User:           yuriytest@192.168.187.131
Contact:        "yuriytest" <sip:yuriytest@192.168.187.1:63463>
Agent:          SIPPER for PhonerLite
Status:         Registered(UDP)(unknown) EXP(2012-02-11 07:44:01) EXPSECS(948)
Host:           localhost.localdomain
IP:             192.168.187.1
Port:           63463
Auth-User:      yuriytest
Auth-Realm:     192.168.187.131
MWI-Account:    yuriytest@192.168.187.131

Total items returned: 2



sqlite> select * from sip_registrations;
7d71ae1483727841@dmlld3BvaW50|yuriytest|192.168.187.131|192.168.187.131|"yuriytest" <sip:yuriytest@192.168.187.1:6065;rinstance=b8a55c925b109a19>|Registered(UDP)|unknown|1328935908|Telphin Softphone release 3015c stamp 31720|yuriytest|192.168.187.131|internal|localhost.localdomain|192.168.187.1|6065|yuriytest|192.168.187.131|yuriytest|192.168.187.131|192.168.187.131|localhost.localdomain|
800D3057-E054-E111-B98C-001CF0118229@192.168.187.1|yuriytest|192.168.187.131|192.168.187.131|"yuriytest" <sip:yuriytest@192.168.187.1:63463>|Registered(UDP)|unknown|1328935441|SIPPER for PhonerLite|yuriytest|192.168.187.131|internal|localhost.localdomain|192.168.187.1|63463|yuriytest|192.168.187.131|yuriytest|192.168.187.131|192.168.187.131|localhost.localdomain|



BUT!  sofia_count_reg don't work :(

freeswitch@internal> sofia_count_reg yuriytest@192.168.187.131
-1





Date: Mon, 13 Feb 2012 10:41:00 -0800
From: msc@freeswitch.org
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Registration Count

Not sure if that's a problem with sofia_count_reg. Might be a database issue. I'd go look in the actual database and see what's going on in there.
-MC

2012/2/13 Yuriy Nasida <nasida@live.ru>
Because it is not working with one of my FS servers.

freeswitch@internal> sofia_count_reg yuriytest@192.168.187.131
-1

Yes, the version of FS is not the reason. I have re-built 'bad' server to 'git-54b4b08 2011-11-04 16-58-35 -0500' but still have this issue.
Not sure why. It works fine with other FS server. 

Please advise.
Thanks.


Date: Mon, 13 Feb 2012 09:45:52 -0800
From: msc@freeswitch.org
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Registration Count

Why do you say that sofia_count_reg does not work?

freeswitch@default> version
FreeSWITCH Version 1.0.head (git-eeeaf41 2012-02-10 17-27-50 -0600)

freeswitch@default> sofia_count_reg 1001@192.168.1.79
1
freeswitch@default>

-MC

2012/2/13 Yuriy Nasida <nasida@live.ru>
Hello guys!

Is there the standart method to limit count of simultaneous registrations for some user?

I wiki I have found only one similar ability http://wiki.freeswitch.org/wiki/API_sofia_count_reg

But... It is for dialplan. 
I use curl module with php scripts for dynamic directory.
So I can use this API from php script before sending the xml to FS. But is there more simple ways ?

Btw, API 'sofia_count_reg' doesn't work with 'new' git
'FreeSWITCH Version 1.0.head (git-e6bfa11 2012-02-09 16-47-32 -0600)'

But! API 'sofia_count_reg' works with 'old' git
FreeSWITCH Version 1.0.head (git-54b4b08 2011-11-04 16-58-35 -0500)

Please advise
Thanks.

_________________________________________________________________________
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



_________________________________________________________________________ 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

_________________________________________________________________________
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



_________________________________________________________________________ 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