Because the registration process in sip is periodical, but each endpoint can select its
expires interval, the oldest contact may hit a valid record, for example the case of a
user with a fixed end point registering every 3600 seconds and another mobile one that
registers every 5 min, but because of losing the wireless connectivity it keeps adding new
contacts. That was the discussion where the limit of registration was decided to be done
by rejecting new registrations.
Now, if you want to remove certain contacts, the oldest, older or newer, it is possible to
do in config right now with reg_fetch_contacts(), then loop through contacts to decide
which should be removed and do unregister() using the ruid field.
Note also that there is a flag for save() to store a single contact per user, removing the
existing one -- maybe that can fit in some scenarios
Anyhow, if someone wants to make this option in the code controlled via modparam or
function params, I am fine with it.
Given that it is already possible via config operations, this feature-request should be
closed unless a developer engages in adding it and wants to track the evolution here.
Otherwise, a PR with implementation in the C code for a simpler config can be just
submitted at any time, no need to have the FR open.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2471#issuecomment-692191960