<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Aqs,</div><div class="">As SamyGO said you can set mod param “max_contacts” for registrar module to 1. It will automatically refresh the AOR on every registration and will not allow multiple entries in location table. Add the below line in your cfg.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">modparam("registrar", "max_</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e6e600" class="">contact</span><span style="font-variant-ligatures: no-common-ligatures" class="">s", 1)</span></div></div><br class=""><div class="">
Regards,<br class="">Husnain Taseer<br class=""><br class=""><br class="">

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 29, 2017, at 8:00 PM, <a href="mailto:users-request@lists.opensips.org" class="">users-request@lists.opensips.org</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Send Users mailing list submissions to<br class=""><span class="Apple-tab-span" style="white-space:pre">    </span><a href="mailto:users@lists.opensips.org" class="">users@lists.opensips.org</a><br class=""><br class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class="">or, via email, send a message with subject or body 'help' to<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span>users-request@lists.opensips.org<br class=""><br class="">You can reach the person managing the list at<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>users-owner@lists.opensips.org<br class=""><br class="">When replying, please edit your Subject line so it is more specific<br class="">than "Re: Contents of Users digest..."<br class=""><br class=""><br class="">Today's Topics:<br class=""><br class="">   1. Replace the old registration record with new<span class="Apple-tab-span" style="white-space:pre">        </span>registration<br class="">      (Aqs Younas)<br class="">   2. Re: Replace the old registration record with new<span class="Apple-tab-span" style="white-space:pre">   </span>registration<br class="">      (SamyGo)<br class=""><br class=""><br class="">----------------------------------------------------------------------<br class=""><br class="">Message: 1<br class="">Date: Sat, 28 Jan 2017 19:04:05 +0000<br class="">From: Aqs Younas <aqsyounas@gmail.com><br class="">To: OpenSIPS users mailling list <users@lists.opensips.org><br class="">Subject: [OpenSIPS-Users] Replace the old registration record with new<br class=""><span class="Apple-tab-span" style="white-space:pre">  </span>registration<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span><CAGVOjVX8ucqA0m=VOVFSyRViS8ZTBVjA==ch8Jtgqy_8GKW-Hg@mail.gmail.com><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">Greetings list,<br class="">I want to keep single AOR per registration. If new regitration comes i want<br class="">to replace the old record with new.<br class="">Suppose User Alice register from device A and after certain time it try to<br class="">register with device B. I want just to have AOR for device B only.<br class="">Any pointer is mush appreciated.<br class=""><br class="">Cheers,<br class="">Aqs<br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <http://lists.opensips.org/pipermail/users/attachments/20170128/9e167b4d/attachment-0001.html><br class=""><br class="">------------------------------<br class=""><br class="">Message: 2<br class="">Date: Sat, 28 Jan 2017 14:17:08 -0500<br class="">From: SamyGo <govoiper@gmail.com><br class="">To: OpenSIPS users mailling list <users@lists.opensips.org><br class="">Subject: Re: [OpenSIPS-Users] Replace the old registration record with<br class=""><span class="Apple-tab-span" style="white-space:pre">    </span>new<span class="Apple-tab-span" style="white-space:pre"> </span>registration<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span><CAJUJwthUmaj=Zc0tpEG5D1CYV3D0fcnmEmRjGDRx00bgpyA0rw@mail.gmail.com><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">Hi Aqs,<br class=""><br class="">I think there is a mod param for usrloc or registrar which states the max<br class="">number of Contacts per AoR. You can set it to 1 and hence you will only be<br class="">keeping the latest Registering device.<br class=""><br class="">I hope thats what you needed.<br class=""><br class="">Thanks.<br class="">Sammy<br class=""><br class=""><br class="">On Jan 28, 2017 14:09, "Aqs Younas" <aqsyounas@gmail.com> wrote:<br class=""><br class="">Greetings list,<br class="">I want to keep single AOR per registration. If new regitration comes i want<br class="">to replace the old record with new.<br class="">Suppose User Alice register from device A and after certain time it try to<br class="">register with device B. I want just to have AOR for device B only.<br class="">Any pointer is mush appreciated.<br class=""><br class="">Cheers,<br class="">Aqs<br class=""><br class="">_______________________________________________<br class="">Users mailing list<br class="">Users@lists.opensips.org<br class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <http://lists.opensips.org/pipermail/users/attachments/20170128/f3df658c/attachment-0001.html><br class=""><br class="">------------------------------<br class=""><br class="">Subject: Digest Footer<br class=""><br class="">_______________________________________________<br class="">Users mailing list<br class="">Users@lists.opensips.org<br class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class=""><br class=""><br class="">------------------------------<br class=""><br class="">End of Users Digest, Vol 102, Issue 97<br class="">**************************************<br class=""></div></div></blockquote></div><br class=""></body></html>