What is the value you set for matching_mode parameter of usrloc module?
Cheers,
Daniel
On 01/02/2017 11:37, Aqs Younas wrote:
Sorry, but still I am unable to make *ul_rm_contact*
work.
Here is what I tried again.
root@debian:/usr/local/kamailio/sbin# ./kamctl ul show
Domain:: location table=1024 records=1 max_slot=1
AOR:: 1040(a)192.168.1.10 <mailto:1040@192.168.1.10>
Contact::
sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp Q=
Expires:: 3366
Callid:: J2MpU81af1hZ7bj2eLBAHQ..
Cseq:: 2
User-agent:: Z 3.9.32144 r32121
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: tcp:192.168.1.10:5060
<http://192.168.1.10:5060>
Methods:: 5087
Ruid:: uloc-5891af42-b58-3
Reg-Id:: 0
Last-Keepalive:: 1485943492
Last-Modified:: 1485943492
./kamctl fifo ul_rm_contact location 1040(a)191.168.1.10
<mailto:1040@191.168.1.10>
sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp
*404 AOR not found*
*
*
root@debian:/usr/local/kamailio/sbin# ./kamctl ul show
Domain:: location table=1024 records=1 max_slot=1
AOR:: 1040(a)192.168.1.10 <mailto:1040@192.168.1.10>
Contact::
sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp Q=
Expires:: 3064
Callid:: J2MpU81af1hZ7bj2eLBAHQ..
Cseq:: 2
User-agent:: Z 3.9.32144 r32121
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: tcp:192.168.1.10:5060
<http://192.168.1.10:5060>
Methods:: 5087
Ruid:: uloc-5891af42-b58-3
Reg-Id:: 0
Last-Keepalive:: 1485943492
Last-Modified:: 1485943492
The command which resulted in contact deletion is below.
root@debian:/usr/local/kamailio/sbin# ./kamctl fifo ul_rm location
1040(a)192.168.1.10 <mailto:1040@192.168.1.10>
Domain:: location table=1024 records=1 max_slot=1
AOR:: 1040(a)192.168.1.10 <mailto:1040@192.168.1.10>
Contact::
sip:1040@192.168.1.8:45573;rinstance=5494290a28b07472;transport=tcp Q=
Expires:: deleted
Callid:: J2MpU81af1hZ7bj2eLBAHQ..
Cseq:: 2
User-agent:: Z 3.9.32144 r32121
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: tcp:192.168.1.10:5060
<http://192.168.1.10:5060>
Methods:: 5087
Ruid:: uloc-5891af42-b58-3
Reg-Id:: 0
Last-Keepalive:: 1485943492
Last-Modified:: 1485943492
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.
Thanks for your time.
On 1 February 2017 at 13:01, Daniel-Constantin Mierla
<miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
Hello,
see comments inline ...
On 01/02/2017 01:12, Aqs Younas wrote:
Greetings list,
I am trying to remove a specific contact from memory but always
resulted in vain.
root@debian:/usr/local/kamailio/sbin# ./kamctl ul show
Domain:: location table=1024 records=1 max_slot=1
AOR:: 1040(a)192.168.0.101 <mailto:1040@192.168.0.101>
Contact::
sip:1040@192.168.0.102:36619;rinstance=1dfaed088d873a18;transport=tcp
Q=
Expires:: 2416
Callid:: _3595KDc1PinhUGFpSf4Dg..
Cseq:: 2
User-agent:: Z 3.9.32144 r32121
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: tcp:192.168.0.101:5060
<http://192.168.0.101:5060>
Methods:: 5087
Ruid:: uloc-58911db0-f45-1
Reg-Id:: 0
Last-Keepalive:: 1485905402
Last-Modified:: 1485905402
.
/kamctl fifo ul_rm_contact location 1040(a)191.168.0.101
<mailto:1040@191.168.0.101>
sip:1040@192.168.0.102:36619;rinstance=1dfaed088d873a18;transport=tcp
404 AOR not found
Tried another command
root@debian:/usr/local/kamailio/sbin# ./kamctl fifo ul_rm
location 1040(a)192.168.0.101 <mailto:1040@192.168.0.101>
root@debian:/usr/local/kamailio/sbin# ./kamctl ul show
Domain:: location table=1024 records=1 max_slot=1
AOR:: 1040(a)192.168.0.101 <mailto:1040@192.168.0.101>
Contact::
sip:1040@192.168.0.102:36619;rinstance=1dfaed088d873a18;transport=tcp
Q=
Expires:: deleted
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.
Cheers,
Daniel
Callid::
_3595KDc1PinhUGFpSf4Dg..
Cseq:: 2
User-agent:: Z 3.9.32144 r32121
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: tcp:192.168.0.101:5060
<http://192.168.0.101:5060>
Methods:: 5087
Ruid:: uloc-58911db0-f45-1
Reg-Id:: 0
Last-Keepalive:: 1485905402
Last-Modified:: 1485905402
And this. .
/kamctl ul rm 1040(a)192.168.0.1 <mailto:1040@192.168.0.1>
sip:1040@192.168.0.102:36619;rinstance=1dfaed088d873a18;transport=tcp
404 AOR not found
Can someone help me know to remove a contact from memory?
Any pointer is much appreciated.
Best Regards.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
--
Daniel-Constantin Mierla
www.twitter.com/miconda <http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) -
www.asipto.com
<http://www.asipto.com>
Kamailio World Conference - May 8-10, 2017 -
www.kamailioworld.com
<http://www.kamailioworld.com>
_______________________________________________ SIP Express Router
(SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>