In LCS2005
I can get everyone's presences stat from database with these sql scripts:
Code Snippet
use Rtc
select status,count(*) as count from
(select case
when Availability = '300' and Activity = '700' then 'online'
when Availability = '300' and Activity = '350' then 'busy'
when Availability = '300' and Activity = '250' then 'hidden'
when Availability = '300' and Activity = '100' then 'away'
else 'offline' end as status from Endpoint) a group by a.status
But now in OCS2007, database,table schema and mechanism have been changed.
(etc: dabase changed from rtc to rtcdyn)
How to get an account's presence from OCS2007 database?
Thanks for any help.