[SR-Users] Replace old registration record with new one while keeping single AOR per contact

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 8 08:22:52 CET 2017


Hello,

you can try to combine reg_fetch_contacts() with unregister(), so you
can choose which contact is removed.

Cheers,
Daniel


On 29/01/2017 21:11, Aqs Younas wrote:
> Thank You for your time. I figured it out later.
> Another question can i remove a specific contact from kamailio with
> db_mode=2 whereas max contacts per AOR set to 2 or replace only a
> specific contact in this case?
>
>  
> On Mon, Jan 30, 2017 at 12:59 AM Federico Cabiddu
> <federico.cabiddu at gmail.com <mailto:federico.cabiddu at gmail.com>> wrote:
>
>     Hi, 
>     you can use the flag "0x04" when calling
>     save(): http://www.kamailio.org/docs/modules/4.4.x/modules/registrar.html#registrar.f.save
>
>     Regards,
>
>     Federico
>
>
>     On 28 Jan 2017 20:13, "Aqs Younas" <aqsyounas at gmail.com
>     <mailto:aqsyounas at gmail.com>> wrote:
>
>         Greetings list,
>         I want to keep single AOR per contact. If new regitration
>         comes i want to replace the old record with new. 
>         Suppose User Alice registers from device A and after certain
>         time it try to register from device B. I want Registration
>         from device B to replace A.
>         Any pointer is mush appreciated.
>
>         Cheers,
>         Aqs
>
>         _______________________________________________
>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>         mailing list
>         sr-users at lists.sip-router.org
>         <mailto:sr-users at lists.sip-router.org>
>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>     _______________________________________________
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>     list
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170208/60ce5fcd/attachment.html>


More information about the sr-users mailing list