[SR-Users] single Contact per AOR dilema

Sergiu Pojoga pojogas at gmail.com
Mon Apr 15 23:32:19 CEST 2019


Hi ppl,

Say we want to allow 1 contact per AOR.
modparam("registrar", "max_contacts", 1)

Say some UA looses connection before de-registering, then comes back
shortly after (before Contact expires) and tries to register with a
different Contact, but gets rejected with error "test_max_contacts(): too
many contacts for AOR".

What's the approach to handle this situation? I'd like the registrar to
accept and save that AoR based on the latest registration. Similar to how
Asterisk's single-contact stack `chan_sip` works - whoever was the latest
to register successfully gets to be the winner.

Thanks,
--Sergiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190415/6b2d6072/attachment.html>


More information about the sr-users mailing list