<div dir="ltr">Hi Boden,<br><div><br></div><div>Right on, hi5</div><div><br></div><div>Cheers,</div><div>--Sergiu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 6:49 PM Boden Garman <<a href="mailto:bpgarman@fastmail.fm">bpgarman@fastmail.fm</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div>Hi Sergiu,<br></div><div><br></div><div>You can use the flags on the save() function from the registrar module<br></div><div><a href="https://www.kamailio.org/docs/modules/5.1.x/modules/registrar.html#registrar.f.save" target="_blank">https://www.kamailio.org/docs/modules/5.1.x/modules/registrar.html#registrar.f.save</a><br></div><div><br></div><ul><li class="gmail-m_5884500488860835560listitem"><p><span class="gmail-m_5884500488860835560emphasis"><i>0x04</i></span> - store and maintain one
                                        contact per AoR. If there are other contact addresses for
                                        AoR not matching current registration, remove them.
                                        This mode ensures one contact per AoR (user).<br></p></li></ul><div><br></div><div>On Tue, 16 Apr 2019, at 7:33 AM, Sergiu Pojoga wrote:<br></div><blockquote type="cite" id="gmail-m_5884500488860835560qt"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi ppl,<br></div><div><br></div><div>Say we want to allow 1 contact per AOR.<br></div><div>modparam("registrar", "max_contacts", 1)<br></div><div><br></div><div>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".<br></div><div><br></div><div>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.<br></div><div><br></div><div>Thanks,<br></div><div>--Sergiu<br></div></div></div></div><div>_______________________________________________<br></div><div>Kamailio (SER) - Users Mailing List<br></div><div><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br></div><div><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br></div><div><br></div></blockquote><div><br></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>