Extension "last on-line" or "status history" or "statistics"

I was wondering if anyone had any good solutions to find when an extension was last online.

When viewing 1 day asterisk statistics on the dashboard I see that around 12 hours ago an extension went offline


By searching through yesterday’s logfiles (logs of 27-Oct-18 stored in /var/log/asterisk/full-20181028 ) I found the “peer” that became “UNREACHABLE” without later becoming reachable but this seems like a lot of work.

It would be a cool feature to get statistics for each extensions like “last on-line”, “last off-line”, “IP address history”, “time of last call”, “duration of last call”, etc.

If anyone knows of any implementations of these advanced statistics features I’d be grateful!

Thanks for the help :slight_smile: