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@gmail.com mailto: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 <mailto: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 <mailto: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 <mailto: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