<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 21:59, Olle E. Johansson <<a href="mailto:oej@edvina.net" class="">oej@edvina.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 01 Apr 2016, at 21:31, 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 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></div></blockquote><br class=""></div><div class="">There is a modparam to register the amount of contacts per AOR - which would do what you need.</div></div></div></blockquote>Sorry - late evening… It’s within the normal registrar module, not in ims.</div><div><a href="http://kamailio.org/docs/modules/4.4.x/modules/registrar.html#registrar.p.max_contacts" class="">http://kamailio.org/docs/modules/4.4.x/modules/registrar.html#registrar.p.max_contacts</a></div><div><br class=""></div><div>/O</div><br class=""></body></html>