Re: [Asterisk-Users] Realtime regseconds update
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. ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Realtime regseconds update
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 rtcachefriends=yes rtnoupdate=yes rtautoclear=yes anyone has any idea? im using 1.2.0beta1, im not sure if its updating this field, i have on also set in my sip.conf file defaultexpirey=300 maxexpirey=300 Also my atas, are set with this value, so it should expire in 300 seconds but sometimes this doesnt occure. Miguel ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users