[Asterisk-Users] Realtime regseconds update
Trevor Peirce
tpeirce at digitalcon.ca
Mon Oct 10 10:42:09 MST 2005
Miguel Cavazos wrote:
> Hi guys, im using realtime and I want to show registered users or
> online users on a webpage and offline users. Im taking regseconds
> field to make this happend
>
> If regseconds value is 0 then user appers offline, it regseconds is
> something else then its online, but sometimes this works and
> sometimes it does not. Im using the following options
>
regseconds is when the registration expires, in unix time
You need to check to see if regseconds is in the past or in the
future... past = expired, future = registered
If it's 0, the user has never been online.
More information about the asterisk-users
mailing list