Claudio,

Yes, the S-CSCF's registration entry for each subscriber is stored in memcached 
in JSON format, and that's what you're seeing here.  The key things from a 
routing perspective are the Contact and Path headers - these are used to 
construct INVITEs to send out to the UE.

I'm guessing here that

·         192.168.56.110 is your P-CSCF (e.g. Bono)

·         192.168.56.1 is your UE's actual IP address

·         127.0.1.1 is the IP address your UE presents.
Is that right?

If so, I don't think you'll see the 192.168.56.1 IP address in any of the 
S-CSCF's data - I think only the P-CSCF knows how to reach the UE (by matching 
on the flow token - "j663TAPCIj" in your example).

Unfortunately, Bono doesn't store its data in an external database, and it 
doesn't have an interface to view this information.  It would be possible to 
add such an interface... and I believe other P-CSCFs (e.g. Metaswitch Perimeta 
- http://www.metaswitch.com/perimeta-session-border-controller-sbc) already 
have interfaces like this.

I hope that helps.

Matt

From: Clearwater [mailto:[email protected]] On 
Behalf Of Claudio Bertoldo
Sent: 24 August 2016 02:56
To: Eleanor Merry (projectclearwater.org) <[email protected]>
Cc: [email protected]
Subject: Re: [Project Clearwater] Doubt about querying SIP registered 
subscribers

Hi Peter,

Thanks a lot and sorry for the delay. This solution has helped me a lot.

For instance, the user below 
([email protected]<mailto:[email protected]>) was registered from 
192.168.56.1, but this IP address is purposely not sent in my SIP packet, but 
Clearwater knows it. Thru the command below I can't see as well, but I know 
that Clearwater relates [email protected]<mailto:[email protected]> 
to 192.168.56.1 because when I INVITE 
[email protected]<mailto:[email protected]>, an INVITE packet is sent 
from Clearwater (192.168.56.110) to 192.168.56.1. If you know any way to query 
this real IP address (not that sent inside the packet, i.e., 127.0.0.1 like 
below), please let me know.

get reg\\sip:[email protected]<mailto:sip%[email protected]>
VALUE reg\\sip:[email protected]<mailto:sip%[email protected]> 
3111270053 488
{"bindings":{"<urn:uuid:00000000-0000-0000-0000-000000000001>:1":{"uri":"sip:[email protected]:5061;transport=UDP;ob","cid":"2010099999///[email protected]<mailto:[email protected]>","cseq":2,"expires":1471990385,"priority":0,"params":{"+sip.ice":"","+sip.instance":"\"<urn:uuid:00000000-0000-0000-0000-000000000001>\"","reg-id":"1"},"paths":["sip:[email protected]:5058;transport=TCP;lr;ob"],"timer_id":"","private_id":"[email protected]<mailto:[email protected]>","emergency_reg":false}},"subscriptions":{},"notify_cseq":2}
END

@Ellie,

Thank you very much. I'll try to go further with this expiration time to be 
sure and if applicable I ask for help again here.

Best,

Claudio Bertoldo

On Tue, Aug 16, 2016 at 1:42 PM, Eleanor Merry 
(projectclearwater.org<http://projectclearwater.org>) 
<[email protected]<mailto:[email protected]>> wrote:
Hi Claudio,

There’s no minimum expiry time setting within Project Clearwater. Your SIP 
client may impose a minimum expiry time, as might the P-CSCF if you’re not 
using Bono.

If you don’t think anything should be setting a minimum expiry time, can you 
please send debug logs over for a register for Sprout and Bono? You can see how 
to turn on debug logs at: 
http://clearwater.readthedocs.io/en/stable/Troubleshooting_and_Recovery.html#sprout.

Thanks,

Ellie

From: Claudio Bertoldo 
[mailto:[email protected]<mailto:[email protected]>]
Sent: 15 August 2016 20:12
To: Eleanor Merry (projectclearwater.org<http://projectclearwater.org>)
Cc: 
[email protected]<mailto:[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


_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to