What is the best way to have the current status of an extension? We are using Asterisk realtime database and would like to be able to know whether a user is currently registered, unregistered, in a call, etc. (via CLI or AMI.)
I have read about adding hints to extension file but I’m not sure if this is the best way and how I could add such hints to the realtime database.
Any help or advice would be appreciated.