[Serusers] Get RealTime Online Users status

SIP sip at arcdiv.com
Tue Oct 9 15:14:20 CEST 2007


roayu wrote:
>
> Hi there!
>
> Can anyone tell me how to get the RealTime Online user status other 
> than using command ‘*serctl ul show*’? Or how can I store the realtime 
> online user status to the MySQL db?
>
> Thanks.
>
> Cheers,
>
> Roa Yu J
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>   
The location table in the MySQL database stores what are, in effect, 
currently online users. It is, however, only an approximation. When a UA 
registers, it sends an expiration time on its registration and that gets 
stored in the location table. If the user disconnects without cancelling 
his registration (some UAs send am expire register message to 'log out' 
and some don't), then the data may still be in the table until the 
expire time occurs. Realistically, though, you can get a good idea of 
currenly online users using the location table and while it may not be 
100% accurate, it's close enough for government work, as it were.

N.



More information about the sr-users mailing list