Hello,
try it like this:
kamcmd> ul.dump
{
Domains: {
Domain: {
Domain: location
Size: 1024
AoRs: {
Info: {
AoR: customer-1
HashID: -396276995
Contacts: {
Contact: {
Address: sip:customer-1@XXX.XXX.64.8:5095;ob
Expires: 296
Q: -1.000000
Call-ID: fxEBSkXjw7s-cwo5rs2AW6SHzWe.942a
CSeq: 42072
User-Agent: PJSUA v2.9 Linux-4.15.0.55/x86_64/glibc-2.27
Received: sip:XXX.XXX.64.8:5095
Path: <sip:XXX.XXX.183.57;lr;received=sip:XXX.XXX.64.8:5095>
State: CS_NEW
Flags: 0
CFlags: 64
Socket: udp:XXX.XXX.178.27:5060
Methods: 8159
Ruid: uloc-5d471b98-1ba9-a
Instance: [not set]
Reg-Id: 0
Server-Id: 0
Tcpconn-Id: -1
Keepalive: 1
Last-Keepalive: 1565120037
Last-Modified: 1565120037
}
}
}
}
Stats: {
Records: 1
Max-Slots: 1
}
}
}
}
kamcmd> ul.rm location customer-1
kamcmd> ul.dump
{
Domains: {
Domain: {
Domain: location
Size: 1024
AoRs: {
}
Stats: {
Records: 0
Max-Slots: 0
}
}
}
}
Cheers,
Henning
Am 06.08.19 um 16:03 schrieb Володимир Іванець:
Hello,
I'm trying to use ul.rm_contact RPC command to unregister spesific Contact but can not figure out "contact" parameter. I tried different combinations but received "error: 404 - Contact not found" message every time. Could please someone tell how this command should be called for one of registered Contacts?
Thank you!
# kamcmd ul.dump{Domains: {Domain: {Domain: locationSize: 1024AoRs: {Info: {AoR: 200-testHashID: 406934013Contacts: {Contact: {Expires: 114Q: -1.000000Call-ID: YmNlMmJlNDMwMGY5NGFkYzkzOTU2NDFhNzc5NWE3Mzc.CSeq: 4User-Agent: 3CXPhone 6.0.26523.0Received: sip:1.1.1.1:52181;transport=tcpPath: [not set]State: CS_NEWFlags: 0CFlags: 65536Socket: tcp:172.16.30.205:5060Methods: 5119Ruid: uloc-5d4983fb-40b5-4Instance: [not set]Reg-Id: 0Server-Id: 0Tcpconn-Id: 3Keepalive: 0Last-Keepalive: 1565099252Last-Modified: 1565099252}Contact: {Expires: 118Q: -1.000000Call-ID: 97566MWMxYmVhMmE1OGUyOTlkMzVmYTYzZmE2ZDE5YWJkYTcCSeq: 4User-Agent: X-Lite release 5.5.0 stamp 97566Received: sip:1.1.1.1:58166Path: [not set]State: CS_NEWFlags: 0CFlags: 65536Socket: udp:172.16.30.205:5060Methods: 5087Ruid: uloc-5d4983fb-4093-2Instance: [not set]Reg-Id: 0Server-Id: 0Tcpconn-Id: -1Keepalive: 0Last-Keepalive: 1565099256Last-Modified: 1565099256}}}}Stats: {Records: 1Max-Slots: 1}}}}
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://skalatan.de/services