[OpenSIPS-Users] Registration expiration doesn't decrease usrloc:registered_users

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jul 9 09:29:06 CEST 2010


Hi,

indeed, I was able to reproduce the error - I will work for a fix.

Thanks for reporting,
Bogdan

mayamatakeshi wrote:
>
>
> On Wed, Jul 7, 2010 at 2:29 AM, Bogdan-Andrei Iancu 
> <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
>
>     Hi,
>
>     what db_mode are you using for usrloc?
>
>
> Hi Bogdan,
>
> modparam("usrloc", "db_mode",   0)
>  
>
>
>     mayamatakeshi wrote:
>     > Hello,
>     > I'm testing with opensips 1.6, latest revision 6985.
>     >
>     > I'm not sure if I'm doing something wrong but I'm not seeing the
>     value
>     > of usrloc:registered_users to decrease when the registration
>     expires.
>     > To test this, I have set a low value for expires. Here are the
>     > parameters I have changed in the sample opensips.cfg:
>     >
>     > modparam("registrar", "max_expires", 30)
>     > modparam("registrar", "min_expires", 30)
>     > modparam("registrar", "default_expires", 30)
>     > modparam("alias_db|auth_db|usrloc|uri", "use_domain", 1)
>     >
>     > Then using SIPp I generated a single REGISTER, got the "200 OK" and
>     > waited 30 seconds. After that, I got this:
>     >
>     > [root at centos53-02008]# opensipsctl fifo get_statistics usrloc:
>     > usrloc:registered_users = 1
>     > usrloc:location-users = 1
>     > usrloc:location-contacts = 0
>     > usrloc:location-expires = 1
>     >
>     > But I was expecting registered_users to be zero, as it happens
>     when I
>     > unregister:
>     >
>     > After registration:
>     > [root at centos53-02008 Basix]# opensipsctl fifo get_statistics usrloc:
>     > usrloc:registered_users = 1
>     > usrloc:location-users = 1
>     > usrloc:location-contacts = 1
>     > usrloc:location-expires = 0
>     >
>     > After unregistration (request with Expires=0):
>     > [root at centos53-02008 Basix]# opensipsctl fifo get_statistics usrloc:
>     > usrloc:registered_users = 0
>     > usrloc:location-users = 0
>     > usrloc:location-contacts = 0
>     > usrloc:location-expires = 0
>     >
>     > regards,
>     > takeshi
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>
>
>     --
>     Bogdan-Andrei Iancu
>     OpenSIPS Bootcamp
>     20 - 24 September 2010, Frankfurt, Germany
>     www.voice-system.ro <http://www.voice-system.ro>
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list