[OpenSIPS-Users] Replace the old registration record with new registration

Husnain Taseer husnain.taseer at gmail.com
Mon Jan 30 13:20:55 EST 2017


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, users-request at lists.opensips.org wrote:
> 
> Send Users mailing list submissions to
> 	users at lists.opensips.org
> 
> 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
> 	users-request at lists.opensips.org
> 
> You can reach the person managing the list at
> 	users-owner at lists.opensips.org
> 
> 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 <aqsyounas at gmail.com>
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Subject: [OpenSIPS-Users] Replace the old registration record with new
> 	registration
> Message-ID:
> 	<CAGVOjVX8ucqA0m=VOVFSyRViS8ZTBVjA==ch8Jtgqy_8GKW-Hg at 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 <govoiper at gmail.com>
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Subject: Re: [OpenSIPS-Users] Replace the old registration record with
> 	new	registration
> Message-ID:
> 	<CAJUJwthUmaj=Zc0tpEG5D1CYV3D0fcnmEmRjGDRx00bgpyA0rw at 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" <aqsyounas at gmail.com> 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
> Users at lists.opensips.org
> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> ------------------------------
> 
> End of Users Digest, Vol 102, Issue 97
> **************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170130/c78b68aa/attachment.html>


More information about the Users mailing list