[Asterisk-Dev] How to use PHP to monitor manager output

Obelix asterisklists at adontendev.net
Mon Jul 25 00:17:03 MST 2005


I want to use PHP to monitor the * Manager output.

I have tried a PHP script, and I realise that compared with using a forwarded
SSH terminal, the events arrived slowly in PHP. The PHP output screen could be
idle for many of seconds, then a number of events would arrive in a batch,
whereas in the SSH session the events appeared more or less in realtime.

The problem is I need to log the time the events happen, and the late arrival in
PHP makes that difficult. Another thing with the manager api is it does not
indicate the exact time the events occurred.

Is there a way to get the manager to indicate the exact time of the events, or
get them to show up in PHP faster?

This is really my first go at PHP socket programming, and there could something
I haven't got right.

/Obelix



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the asterisk-dev mailing list