<div dir="ltr">Thank you, guys. <div>There is another flag "f" force registration to set for save function to replace the old registrations without exceeding the maximum number of contacts per AOR. Else you would be getting 503 in reply. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 January 2017 at 23:20, Husnain Taseer <span dir="ltr"><<a href="mailto:husnain.taseer@gmail.com" target="_blank">husnain.taseer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Aqs,</div><div>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><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">modparam("registrar", "max_</span><span style="font-variant-ligatures:no-common-ligatures;background-color:#e6e600">contact</span><span style="font-variant-ligatures:no-common-ligatures">s", 1)</span></div></div><br><div>
Regards,<br>Husnain Taseer<br><br><br>

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