Hello,<br>I'm testing with opensips 1.6, latest revision 6985.<br><br>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. <br>
To test this, I have set a low value for expires. Here are the parameters I have changed in the sample opensips.cfg:<br><br>modparam("registrar", "max_expires", 30)<br>modparam("registrar", "min_expires", 30)<br>
modparam("registrar", "default_expires", 30)<br>modparam("alias_db|auth_db|usrloc|uri", "use_domain", 1)<br><br>Then using SIPp I generated a single REGISTER, got the "200 OK" and waited 30 seconds. After that, I got this:<br>
<br>[root@centos53-02008]# opensipsctl fifo get_statistics usrloc:<br>usrloc:registered_users = 1<br>usrloc:location-users = 1<br>usrloc:location-contacts = 0<br>usrloc:location-expires = 1<br><br>But I was expecting registered_users to be zero, as it happens when I unregister:<br>
<br>After registration:<br>[root@centos53-02008 Basix]# opensipsctl fifo get_statistics usrloc:<br>usrloc:registered_users = 1<br>usrloc:location-users = 1<br>usrloc:location-contacts = 1<br>usrloc:location-expires = 0<br>
<br>After unregistration (request with Expires=0):<br>[root@centos53-02008 Basix]# opensipsctl fifo get_statistics usrloc:<br>usrloc:registered_users = 0<br>usrloc:location-users = 0<br>usrloc:location-contacts = 0<br>usrloc:location-expires = 0<br>
<br>regards,<br>takeshi<br>