[SR-Users] ul.rm_contact usage

Володимир Іванець volodyaivanets at gmail.com
Wed Aug 7 14:47:31 CEST 2019


Hello Henning!

*ul.rm* removes all contacts for AoR. I need to be able to remove single
contact. I figured out that it will be better to use unregister(domain,
uri[, ruid]) function instead.

Thank you!

вт, 6 серп. 2019 о 22:36 Henning Westerholt <hw at skalatan.de> пише:

> 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 at 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: location*
> *                        Size: 1024*
> *                        AoRs: {*
> *                                Info: {*
> *                                        AoR: 200-test*
> *                                        HashID: 406934013*
> *                                        Contacts: {*
> *                                                Contact: {*
> *                                                        Address:
> sip:200-test at 1.1.1.1:52181;transport=TCP;rinstance=5d1a0b6b677f269d
> <sip:200-test at 1.1.1.1:52181;transport=TCP;rinstance=5d1a0b6b677f269d>*
> *                                                        Expires: 114*
> *                                                        Q: -1.000000*
> *                                                        Call-ID:
> YmNlMmJlNDMwMGY5NGFkYzkzOTU2NDFhNzc5NWE3Mzc.*
> *                                                        CSeq: 4*
> *                                                        User-Agent:
> 3CXPhone 6.0.26523.0*
> *                                                        Received:
> sip:1.1.1.1:52181;transport=tcp*
> *                                                        Path: [not set]*
> *                                                        State: CS_NEW*
> *                                                        Flags: 0*
> *                                                        CFlags: 65536*
> *                                                        Socket:
> tcp:172.16.30.205:5060 <http://172.16.30.205:5060>*
> *                                                        Methods: 5119*
> *                                                        Ruid:
> uloc-5d4983fb-40b5-4*
> *                                                        Instance: [not
> set]*
> *                                                        Reg-Id: 0*
> *                                                        Server-Id: 0*
> *                                                        Tcpconn-Id: 3*
> *                                                        Keepalive: 0*
> *                                                        Last-Keepalive:
> 1565099252*
> *                                                        Last-Modified:
> 1565099252*
> *                                                }*
> *                                                Contact: {*
> *                                                        Address:
> sip:200-test at 1.1.1.1:58166;rinstance=5996b96740d52a3a
> <sip:200-test at 1.1.1.1:58166;rinstance=5996b96740d52a3a>*
> *                                                        Expires: 118*
> *                                                        Q: -1.000000*
> *                                                        Call-ID:
> 97566MWMxYmVhMmE1OGUyOTlkMzVmYTYzZmE2ZDE5YWJkYTc*
> *                                                        CSeq: 4*
> *                                                        User-Agent:
> X-Lite release 5.5.0 stamp 97566*
> *                                                        Received:
> sip:1.1.1.1:58166 <http://1.1.1.1:58166>*
> *                                                        Path: [not set]*
> *                                                        State: CS_NEW*
> *                                                        Flags: 0*
> *                                                        CFlags: 65536*
> *                                                        Socket:
> udp:172.16.30.205:5060 <http://172.16.30.205:5060>*
> *                                                        Methods: 5087*
> *                                                        Ruid:
> uloc-5d4983fb-4093-2*
> *                                                        Instance: [not
> set]*
> *                                                        Reg-Id: 0*
> *                                                        Server-Id: 0*
> *                                                        Tcpconn-Id: -1*
> *                                                        Keepalive: 0*
> *                                                        Last-Keepalive:
> 1565099256*
> *                                                        Last-Modified:
> 1565099256*
> *                                                }*
> *                                        }*
> *                                }*
> *                        }*
> *                        Stats: {*
> *                                Records: 1*
> *                                Max-Slots: 1*
> *                        }*
> *                }*
> *        }*
> *}*
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Henning Westerholt - https://skalatan.de/blog/
> Kamailio services - https://skalatan.de/services
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190807/3e9d22b7/attachment.html>


More information about the sr-users mailing list