Thank you, guys.
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.

On 30 January 2017 at 23:20, Husnain Taseer <[email protected]>
wrote:

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

Reply via email to