<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 01 Apr 2016, at 22:07, Bruno Emer <<a href="mailto:brunoemer@gmail.com" class="">brunoemer@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello, <i style="font-family: Times; font-size: inherit;" class="">Olle!</i><div class=""><font face="Times" size="3" class=""><i class=""><br class=""></i></font></div><div class=""><font face="Times" size="3" class=""><i class="">Thanks for your help in this case, and don't worry about the time (actually I wasn't even expecting to get an answer today).</i></font></div><div class=""><font face="Times" size="3" class=""><i class=""><br class=""></i></font></div><div class=""><font face="Times" size="3" class=""><i class="">I know the max_contacts parameter. But the problem is that if I set the max_contacts to 2, when the user tries to register again, he gets an error message 503. The point is that I want to get the user registered, and replace the oldest location entry for the newest one.<br class=""></i></font></div></div></div></blockquote>THen you need to check the parameters to the save() command on the same documentation page:</div><div>"<ul class="itemizedlist" style="font-family: Helvetica, Arial;"><li class="listitem"><p style="font-size: 12px; text-align: justify;" class=""><span class="emphasis"><em class="">0x04</em></span> - store and maintain one contact per AoR. If there are other contact addresses for AoR not matching current registration, remove them. This mode ensures one contact per AoR (user).</p></li></ul><div class="">“</div><div class=""><br class=""></div><div class="">/O</div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><span style="background-color:rgb(255,255,255)" class=""><font size="2" class=""><strong style="font-family:Arial" class=""><u class=""><br class=""></u></strong></font></span></div><div class=""><span style="background-color:rgb(255,255,255)" class=""><font size="2" class=""><strong style="font-family:Arial" class=""><u class=""><br class=""></u></strong></font></span></div><div class=""><span style="background-color:rgb(255,255,255)" class=""><font size="2" class=""><strong style="font-family:Arial" class=""><u class="">Bruno Emer</u></strong></font></span></div><div class=""><font color="#00a1e6" style="font-size:small;font-family:sans-serif" class=""><br class=""></font></div><div class="">Mobile: +55 11 96540-0044 </div><div class="">email: <a href="mailto:brunoemer@gmail.com" target="_blank" class="">brunoemer@gmail.com</a></div><div class=""><span style="font-family: Helvetica, Arial, sans-serif;" class=""></span><div style="font-family: Helvetica, Arial, sans-serif; margin-top: 5px;" class=""><br class=""></div></div></div></div></div><div class="gmail_quote">2016-04-01 16:31 GMT-03:00 Bruno Emer <span dir="ltr" class=""><<a href="mailto:brunoemer@gmail.com" target="_blank" class="">brunoemer@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class="">Hello all.<div class=""><br class=""></div><div class="">I have problem here and I tried to find a solution and search over internet, but without success.</div><div class=""><br class=""></div><div class="">My scenario is the following: I have an application that must be registered in Kamailio when a user logs in the web interface, so he can get calls (something like a web softphone using webrtc). At this point, we are OK, and everything is working fine.</div><div class=""><br class=""></div><div class="">To get these register functions I am using the parameter "save("location", "0x04")" as described in the REGISTRAR module documentation, so if a user logs in another web browser or computer, only the last one will continue registered and all calls will be forwarded to him.</div><div class=""><br class=""></div><div class="">The point is that now we are creating a phone app that will do almost the same thing as the web interface, allowing users to receive calls using the mobile device, and here is my problem: I want to allow my users to be registered on two devices at the same time, but if a user logs into another device, I don't want to reply with a 503. I want to allow the user to register again, deregistering the oldest contact.</div><div class=""><br class=""></div><div class="">I saw that there is a module named "<span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:1.125em;line-height:1.2" class="">ims_usrloc_scscf" and on its description it says "</span><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px;line-height:19.6px" class="">implemented overwrite oldest contact behaviour", but I couldn't find any documentation about it.</span></div><div class=""><span style="font-size:14px;line-height:19.6px;font-weight:normal" class=""><br class=""></span></div><div class=""><span style="font-size:14px;line-height:19.6px;font-weight:normal" class="">So, is there a way to get this working today?</span></div><div class=""><div class=""><div class=""><div dir="ltr" class=""><div class=""><span style="background-color:rgb(255,255,255)" class=""><font size="2" class=""><strong style="font-family:Arial" class=""><u class=""><br class=""></u></strong></font></span></div><div class=""><span style="background-color:rgb(255,255,255)" class=""><font size="2" class=""><strong style="font-family:Arial" class=""><u class=""><br class=""></u></strong></font></span></div><div class=""><span style="background-color:rgb(255,255,255)" class=""><font size="2" class=""><strong style="font-family:Arial" class=""><u class="">Bruno Emer</u></strong></font></span></div><div class=""><font color="#00a1e6" style="font-size:small;font-family:sans-serif" class=""><br class=""></font></div><div class="">Mobile: <a href="tel:%2B55%2011%2096540-0044" value="+5511965400044" target="_blank" class="">+55 11 96540-0044</a> </div><div class="">email: <a href="mailto:brunoemer@gmail.com" target="_blank" class="">brunoemer@gmail.com</a></div></div></div></div>
</div></div>
</blockquote></div><br class=""></div></div></div>
_______________________________________________<br class="">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br class=""><a href="mailto:sr-users@lists.sip-router.org" class="">sr-users@lists.sip-router.org</a><br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></body></html>