Hello,
you can try to combine reg_fetch_contacts() with unregister(), so you can choose which contact is removed.
Cheers,
Daniel
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@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@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@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@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@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