Hi Claudio,
I remember finding this info from Clearwater last year sometime.
(sorry I can’t find the link)
You can obtain the registration data on sprout, by using…
telnet <sprout IP address> 11211
get reg\\sip:<user>@<domain name>
quit
This has the expiration time (in epoch seconds) and user IP address.
From: Clearwater [mailto:[email protected]] On
Behalf Of Claudio Bertoldo
Sent: Tuesday, 16 August 2016 7:12 a.m.
To: Eleanor Merry (projectclearwater.org)
Cc: [email protected]
Subject: Re: [Project Clearwater] Doubt about querying SIP registered
subscribers
Hi Ellie,
Thanks a lot.
Besides of other applications, I'd like to know why registered users with
desired lifespan of 1s ('Expires: 1') take more than it to expire. I think
there's a minimum time, is that right?
Anyway, if/when a best way to query it arise, please let me know.
Thanks in advance.
Best,
Claudio
On Fri, Aug 12, 2016 at 2:38 PM, Eleanor Merry
(projectclearwater.org<http://projectclearwater.org>)
<[email protected]<mailto:[email protected]>> wrote:
Hi Claudio,
There’s no official way of getting this information I’m afraid.
The information you want is stored in our memcached database. I’ve had a look
around for supported methods of pulling all the values out of memcached, but
I’ve not had much luck.
There’s “memcached-tool” (/usr/share/memcached/scripts/memcached-tool <local
ip>:11211 dump) which should report all the keys and values stored in
memcached, but I’ve found this just hangs on my machine.
There’s also using the output of “stats cachedump”, but I’ve found that this
gives me the output “SERVER_ERROR out of memory writing stats” (and it doesn’t
appear to be an officially supported debug tool from memcached).
You may have more luck with these methods!
Ellie
From: Clearwater
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of Claudio Bertoldo
Sent: 11 August 2016 02:45
To:
[email protected]<mailto:[email protected]>
Subject: [Project Clearwater] Doubt about querying SIP registered subscribers
Hi,
I'd like to know if it's possible to query the current registered subscribers,
their expiration time (remaining time preferably) and their IP address. I could
not find this info in this list neither in the official documentation, so if
that is there, sorry in advance.
Best regards,
Claudio Bertoldo
Peter Skrzynski
Technical Lead
NEC New Zealand Limited
NEC House, Level 6, 40 Taranaki Street, PO Box: 1936, Wellington 6011, New
Zealand
T: 043816257, M: 0274849530, F: +6443811110
[email protected]<mailto:[email protected]>
nz.nec.com<http://nz.nec.com>
[cid:[email protected]]
Please consider the environment before printing this email
Attention:
The information contained in this message and or attachments is intended only
for the person or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination, copying
or other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material from
any system and destroy any copies. NEC has no liability for any act or omission
in reliance on the email or any attachment. Before opening this email or any
attachment(s), please check them for viruses. NEC is not responsible for any
viruses in this email or any attachment(s); any changes made to this email or
any attachment(s) after they are sent; or any effects this email or any
attachment(s) have on your network or computer system.
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org