<div dir="ltr"><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 11, 2020 at 11:06 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Why not just expire them quickly?</div></blockquote><div>This may work but it will increase rate of registrations and put load on server. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 11 Sep 2020 at 17:25, sagar malam <<a href="mailto:sagarmalam@gmail.com" target="_blank">sagarmalam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Juha, <br></div><div><br></div>baresip app is interesting. I will look at it.<div><br></div><div>I have tried ul_rm_contact but it is not working : </div><div><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)">curl POST --data '{"jsonrpc":"2.0","method":"ul.rm_contact","params":{"0":"location","1":"</span><a rel="nofollow noreferrer noopener" href="mailto:30001@jeff.sip.teledge.com" dir="ltr" style="unicode-bidi:isolate;font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)" target="_blank">30001@XXXXX.com</a><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)">","2":"sip:30001@X.X.X.X:43108;x-nat=yes;pv-ip=10.212.134.167;pb-ip=X.X.X.X;pb-pt=43108;transport=tcp"}}' -H "Content-Type: application/json" -X POST <a href="http://10.50.7.14:5060/RPC2" style="font-family:Roboto,sans-serif" target="_blank">10.50.7.14:5060/RPC2</a></span><br></div><div><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)"><br></span></div><div><font face="Roboto, sans-serif" style="font-family:Roboto,sans-serif;color:rgb(38,50,56)">It is throwing error : </font></div><div><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)">{</span><br style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)"> "jsonrpc": "2.0",</span><br style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)"> "error": {</span><br style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)"> "code": 404,</span><br style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)"> "message": "Contact not found"</span><br style="color:rgb(38,50,56);font-family:Roboto,sans-serif;font-size:13px"><span style="font-family:Roboto,sans-serif;font-size:13px;color:rgb(38,50,56)"> }</span><font face="Roboto, sans-serif" style="font-family:Roboto,sans-serif;color:rgb(38,50,56)"><br></font></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 11, 2020 at 8:03 PM Juha Heinanen <<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">sagar malam writes:<br><br><br><br><br><br>> I am using the usrloc module to store registrations. I could not find any<br><br><br>> way to remove stale registrations before expires time. Most of the<br><br><br>> registrations are mobile app so they wont run in background to save battery<br><br><br>> of phone hence we end up having lots of registrations in usrloc which were<br><br><br>> not removed because app was killed in background by OS without letting it<br><br><br>> send unregister request.<br><br><br><br><br><br>There are apps (e.g. baresip) that run as foreground service to avoid<br><br><br>being killed and that don't consume lots of battery.<br><br><br><br><br><br>> Is there any way to remove stale registrations before expires time from<br><br><br>> usrloc ?<br><br><br><br><br><br>There is ul.rm_contact rpc command.<br><br><br><br><br><br>-- Juha<br><br><br><br><br><br>_______________________________________________<br><br><br>Kamailio (SER) - Users Mailing List<br><br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">Thanks,<div><br></div><div>Sagar</div></div></div><br><br>_______________________________________________<br><br>Kamailio (SER) - Users Mailing List<br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></blockquote></div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">Thanks,<div><br></div><div>Sagar</div></div></div></div>