Hi,
you can achieve this by using the flag 0x04 when calling save() function from registrar module:
http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1965144

Regards,

Federico

On 30 Sep 2014 10:54, "qw" <applemax82@163.com> wrote:
Hi,

I have one question about contact in kamailio.

Sometimes, one user may register multiple contacts in kamailio server, where contacts are represented as ip:port. For example, the user registers at first, and lose connection to the internet later. After one minute, the user connects the internet again, but can't get service from kamailio server. Then the user need to registers with new contact. Now there are two contacts in kamailio, i.e. old one and new one. How can I remove the old contact, and make sure there is only one contact in kamailio server.

Looking forward to your help!

B.R.

andrew



_______________________________________________
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