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

Herman Webley herman.webley at blitzllc.com
Mon Jul 25 10:10:36 MST 2005


On 07/25/05 02:17:03, Obelix wrote:
> 
> 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

I use a php daemon (cli php) that connects via the manager API. Work  
good for me. My php output buffering settings are the default for  
freebsd. What kind of delay are you experiencing (milliseconds,  
seconds, minutes)?

Best regards,
Herman




More information about the asterisk-dev mailing list