Hi, i am trying to remove a specific contact from memroy but to no avail. Here is what I had tried.
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
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
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 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
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
Methods:: 5087
Ruid:: uloc-5891af42-b58-3
Reg-Id:: 0
Last-Keepalive:: 1485943492
Last-Modified:: 1485943492
I had tried to unregister with ruid. Code snippet.
if(reg_fetch_contacts("location", "$fu", "caller"))
{
xlog("caller=>aor: $(ulc(caller=>aor))\n");
xlog("caller=>domain: $(ulc(caller=>domain))\n");
xlog("caller=>aorhash $(ulc(caller=>aorhash))\n");
xlog("caller=>count $(ulc(caller=>count))\n");
xlog("caller=>ruid $(ulc(caller=>ruid))\n");
$var(i) = 0;
while($var(i) < $(ulc(caller=>count)))
{
xlog("--- contact [$var(i)]\n");
if ($(ulc(caller=>user_agent)[$var(i)]) == 'Jitsi2.10.5550Windows 10') {
xlog("found the culpit now removing it");
unregister("location", "", "$(ulc(caller=>ruid)[$var(i)])");
}
xlog("caller=>addr: $(ulc(caller=>addr)[$var(i)])\n");
xlog("caller=>path: $(ulc(caller=>path)[$var(i)])\n");
xlog("caller=>received: $(ulc(caller=>received)[$var(i)])\n");
xlog("caller=>expires: $(ulc(caller=>expires)[$var(i)])\n");
xlog("caller=>callid: $(ulc(caller=>callid)[$var(i)])\n");
xlog("caller=>q: $(ulc(caller=>q)[$var(i)])\n");
xlog("caller=>cseq: $(ulc(caller=>cseq)[$var(i)])\n");
xlog("caller=>flags: $(ulc(caller=>flags)[$var(i)])\n");
xlog("caller=>cflags: $(ulc(caller=>cflags)[$var(i)])\n");
xlog("caller=>user_agent: $(ulc(caller=>user_agent)[$var(i)])\n");
xlog("caller=>socket: $(ulc(caller=>socket)[$var(i)])\n");
xlog("caller=>modified: $(ulc(caller=>modified)[$var(i)])\n");
xlog("caller=>methods: $(ulc(caller=>methods)[$var(i)])\n");
$var(i) = $var(i) + 1;
}
}
}
This is what I got in logs.
**usrloc [urecord.c:634]: delete_urecord_by_ruid(): delete_urecord_by_ruid currently available only in db_mode=3**
I am having default script having below usrloc settings
/* enable DB persistency for location entries */
#!ifdef WITH_USRLOCDB
modparam("usrloc", "db_url", DBURL)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
modparam("usrloc", "matching_mode", 0)
#!endif
I want to remove a specific contact from memory and using default cfg file.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1027
### Description
I've kamailio 4.2.3 (i386/freebsd) which works perfectly with 200-300
cps for years.
Now I need migrate to freebsd amd64. I've installed kamailio 4.4.5
(amd64/freebsd), copied kamailio.cfg, made a test call - it was all right.
But when I start work load (200-300 cps), kamailio core dumped and
exited.
### Troubleshooting
#### Reproduction
Compile kamailio on FreeBSD amd64 and load it ~200-300 cps
#### Debugging Data
gdb's bt is here: http://tmp.lehis.ru/kam_gdb.txt
I can't enable debug symbols for gdb (tried gmake mode=debug, which
added EXTRA_DEBUG to flags). How can I do it?
#### Log Messages
syslog (skipped "<script>:" having): http://tmp.lehis.ru/kam_log.txt
### Additional Information
version: kamailio 4.4.5 (amd64/freebsd) f98162
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_PTHREAD_MUTEX, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE
65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, select, kqueue.
id: f98162
compiled on 12:25:48 Mar 1 2017 with clang 3.4
OS: FreeBSD sip7 10.3-STABLE FreeBSD 10.3-STABLE #0: Wed Feb 15 12:13:46 MSK 2017 root@sip7:/usr/obj/usr/src/sys/SIP7 amd64 (r313760)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1021