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

mayamatakeshi mayamatakeshi at gmail.com
Sun Jun 27 01:37:03 CEST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100627/813346c1/attachment.htm 


More information about the Users mailing list