Hi,
is there any nice way to show peer status in a PHP script. So that someone can see if user xy is online or available? I’ve seen some attends but not really nice things. For example use the output of the console commands. I’m thinking about a MySQL database where every peer is regsitered as soon as he goes online.
The easiest way is to use asterisk -x “sip show peers” command with a combination of :. grep , awk or any other Linux’s filtering tool, then a cron job. But a more sophisticated way is use the AMI actions and events related to peer status, and the PHP fsockopen() function , this will add realtime information and speed