<p dir="ltr">Hi, <br>
you can achieve this by using the flag 0x04 when calling save() function from registrar module:<br>
<a href="http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1965144">http://kamailio.org/docs/modules/stable/modules/registrar.html#idp1965144</a></p>
<p dir="ltr">Regards, </p>
<p dir="ltr">Federico</p>
<div class="gmail_quote">On 30 Sep 2014 10:54, "qw" <<a href="mailto:applemax82@163.com">applemax82@163.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>I have one question about contact in kamailio.</div><div><br></div><div>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.<br></div><div><br></div><div>Looking forward to your help!</div><div><br></div><div>B.R.</div><div><br></div><div>andrew</div></div><br><br><span title="neteasefooter"><span></span></span><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div>