I’m assuming you did this part? Obviously don’t use amp111 but yeah. Are you sure it says API and not AMI?
Manager Credentials
For the realtime page to work, you must supply valid Asterisk Manager Interface (AMI) credentials to Asternic setup.
Look at your /etc/asterisk/manager.conf file and search for a valid user and secret, it will look something similar to this:
[admin]
secret=amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read=all
write=all
In the above case, the user is ‘admin’ and the secret is ‘amp111’.
From Asternic CCStats PRO version 2.3.0 and upwards, you can setup those credentails going to Setup/AMI Servers menu.
For older Asternic versions, edit the config file located in /var/www/html/stats/config.php
file:
// Manager details (for realtime tab)
$MANAGER_HOST = "127.0.0.1";
$MANAGER_USER = "admin";
$MANAGER_SECRET = "amp111";
Without those credentials being set, the realtime view won’t display any agents or queue activity, while reports will run normally.
NOTE
It is also very important that the manager user has the originate (or all) permission in the write line if you want to use the realtime actions for spy, coach and steal calls. Without it, those actions will misserably fail without notice.