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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jul 6 19:29:35 CEST 2010


Hi,

what db_mode are you using for usrloc?

Regards,
Bogdan

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
> 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