<p></p>
<p>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.</p>
<p>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.</p>
<p>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</p>
<p>Anyhow, if someone wants to make this option in the code controlled via modparam or function params, I am fine with it.</p>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2471#issuecomment-692191960">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLVNFTCA3WWHL7JMP3SFZFCPANCNFSM4Q4V2NOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOH5B5DL3VYQMCSYRDSFZFCPA5CNFSM4Q4V2NOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFBAFWA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2471#issuecomment-692191960",
"url": "https://github.com/kamailio/kamailio/issues/2471#issuecomment-692191960",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>