<div dir="ltr">Sorry, but still I am unable to make <span style="font-size:12.8px"><b>ul_rm_contact</b> work. </span><br><div><br></div><div>Here is what I tried again. </div><div><br></div><div><div>root@debian:/usr/local/kamailio/sbin# ./kamctl ul show</div><div>Domain:: location table=1024 records=1 max_slot=1</div><div> AOR:: <a href="mailto:1040@192.168.1.10">1040@192.168.1.10</a></div><div> Contact:: sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp Q=</div><div> Expires:: 3366</div><div> Callid:: J2MpU81af1hZ7bj2eLBAHQ..</div><div> Cseq:: 2</div><div> User-agent:: Z 3.9.32144 r32121</div><div> State:: CS_SYNC</div><div> Flags:: 0</div><div> Cflag:: 0</div><div> Socket:: tcp:<a href="http://192.168.1.10:5060">192.168.1.10:5060</a></div><div> Methods:: 5087</div><div> Ruid:: uloc-5891af42-b58-3</div><div> Reg-Id:: 0</div><div> Last-Keepalive:: 1485943492</div><div> Last-Modified:: 1485943492</div></div><div><br></div><div><div>./kamctl fifo ul_rm_contact location <a href="mailto:1040@191.168.1.10">1040@191.168.1.10</a> sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp</div><div><b>404 AOR not found</b></div></div><div><b><br></b></div><div><div>root@debian:/usr/local/kamailio/sbin# ./kamctl ul show</div><div>Domain:: location table=1024 records=1 max_slot=1</div><div> AOR:: <a href="mailto:1040@192.168.1.10">1040@192.168.1.10</a></div><div> Contact:: sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp Q=</div><div> Expires:: 3064</div><div> Callid:: J2MpU81af1hZ7bj2eLBAHQ..</div><div> Cseq:: 2</div><div> User-agent:: Z 3.9.32144 r32121</div><div> State:: CS_SYNC</div><div> Flags:: 0</div><div> Cflag:: 0</div><div> Socket:: tcp:<a href="http://192.168.1.10:5060">192.168.1.10:5060</a></div><div> Methods:: 5087</div><div> Ruid:: uloc-5891af42-b58-3</div><div> Reg-Id:: 0</div><div> Last-Keepalive:: 1485943492</div><div> Last-Modified:: 1485943492</div><div><br></div><div>The command which resulted in contact deletion is below. </div></div><div><br>root@debian:/usr/local/kamailio/sbin# ./kamctl fifo ul_rm location <a href="mailto:1040@192.168.1.10">1040@192.168.1.10</a><br></div><div><div>Domain:: location table=1024 records=1 max_slot=1</div><div> AOR:: <a href="mailto:1040@192.168.1.10">1040@192.168.1.10</a></div><div> Contact:: sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp Q=</div><div> Expires:: deleted</div><div> Callid:: J2MpU81af1hZ7bj2eLBAHQ..</div><div> Cseq:: 2</div><div> User-agent:: Z 3.9.32144 r32121</div><div> State:: CS_SYNC</div><div> Flags:: 0</div><div> Cflag:: 0</div><div> Socket:: tcp:<a href="http://192.168.1.10:5060">192.168.1.10:5060</a></div><div> Methods:: 5087</div><div> Ruid:: uloc-5891af42-b58-3</div><div> Reg-Id:: 0</div><div> Last-Keepalive:: 1485943492</div><div> Last-Modified:: 1485943492</div></div><div><br></div><div>But above command deletes all contacts against an AOR. I want to remove only a specific contact. Yes, i am using db_mode=2 for usrloc. </div><div>Thanks for your time. </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 February 2017 at 13:01, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>see comments inline ...<br>
</p><div><div class="h5">
<br>
<div class="m_-3790842301679570693moz-cite-prefix">On 01/02/2017 01:12, Aqs Younas wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Greetings list,
<div><br>
</div>
<div>I am trying to remove a specific contact from memory but
always resulted in vain. </div>
<div><br>
</div>
<div>root@debian:/usr/local/<wbr>kamailio/sbin# ./kamctl ul show<br>
</div>
<div>
<div>Domain:: location table=1024 records=1 max_slot=1</div>
<div> AOR:: <a href="mailto:1040@192.168.0.101" target="_blank">1040@192.168.0.101</a></div>
<div> Contact::
<a class="m_-3790842301679570693moz-txt-link-freetext">sip:1040@192.168.0.102:36619;<wbr>rinstance=1dfaed088d873a18;<wbr>transport=tcp</a>
Q=</div>
<div> Expires:: 2416</div>
<div> Callid:: _3595KDc1PinhUGFpSf4Dg..</div>
<div> Cseq:: 2</div>
<div> User-agent:: Z 3.9.32144 r32121</div>
<div> State:: CS_SYNC</div>
<div> Flags:: 0</div>
<div> Cflag:: 0</div>
<div> Socket:: tcp:<a href="http://192.168.0.101:5060" target="_blank">192.168.0.101:5060</a></div>
<div> Methods:: 5087</div>
<div> Ruid:: uloc-58911db0-f45-1</div>
<div> Reg-Id:: 0</div>
<div> Last-Keepalive:: 1485905402</div>
<div> Last-Modified:: 1485905402</div>
</div>
<div>
<div>.</div>
<div>/kamctl fifo ul_rm_contact location <a href="mailto:1040@191.168.0.101" target="_blank">1040@191.168.0.101</a>
<a class="m_-3790842301679570693moz-txt-link-freetext">sip:1040@192.168.0.102:36619;<wbr>rinstance=1dfaed088d873a18;<wbr>transport=tcp</a></div>
<div>404 AOR not found</div>
</div>
<div><br>
</div>
<div>Tried another command </div>
<div>
<div><br>
</div>
<div>root@debian:/usr/local/<wbr>kamailio/sbin# ./kamctl fifo ul_rm
location <a href="mailto:1040@192.168.0.101" target="_blank">1040@192.168.0.101</a></div>
<div>root@debian:/usr/local/<wbr>kamailio/sbin# ./kamctl ul show</div>
<div>Domain:: location table=1024 records=1 max_slot=1</div>
<div> AOR:: <a href="mailto:1040@192.168.0.101" target="_blank">1040@192.168.0.101</a></div>
<div> Contact::
<a class="m_-3790842301679570693moz-txt-link-freetext">sip:1040@192.168.0.102:36619;<wbr>rinstance=1dfaed088d873a18;<wbr>transport=tcp</a>
Q=</div>
<div> Expires:: deleted</div>
</div>
</div>
</blockquote>
<br></div></div>
See above line, the contact is "deleted". But I guess you have a db
mode that relies on the timer for complete removal from memory and
database, which should happen in max 60 sec if you haven't changed
the related parameters for usrloc.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote type="cite"><span class="">
<div dir="ltr">
<div>
<div> Callid:: _3595KDc1PinhUGFpSf4Dg..</div>
<div> Cseq:: 2</div>
<div> User-agent:: Z 3.9.32144 r32121</div>
<div> State:: CS_SYNC</div>
<div> Flags:: 0</div>
<div> Cflag:: 0</div>
<div> Socket:: tcp:<a href="http://192.168.0.101:5060" target="_blank">192.168.0.101:5060</a></div>
<div> Methods:: 5087</div>
<div> Ruid:: uloc-58911db0-f45-1</div>
<div> Reg-Id:: 0</div>
<div> Last-Keepalive:: 1485905402</div>
<div> Last-Modified:: 1485905402</div>
</div>
<div><br>
</div>
<div>
<div>And this. .</div>
<div><br>
</div>
<div>/kamctl ul rm <a href="mailto:1040@192.168.0.1" target="_blank">1040@192.168.0.1</a>
<a class="m_-3790842301679570693moz-txt-link-freetext">sip:1040@192.168.0.102:36619;<wbr>rinstance=1dfaed088d873a18;<wbr>transport=tcp</a></div>
<div>404 AOR not found</div>
</div>
<div><br>
</div>
<div>Can someone help me know to remove a contact from memory?</div>
<div>Any pointer is much appreciated. </div>
<div><br>
</div>
<div>Best Regards. </div>
<div><br>
</div>
</div>
<br>
<fieldset class="m_-3790842301679570693mimeAttachmentHeader"></fieldset>
<br>
</span><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_-3790842301679570693moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_-3790842301679570693moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_-3790842301679570693moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-3790842301679570693moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-3790842301679570693moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="m_-3790842301679570693moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-3790842301679570693moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>