----- Original Message -----
> Thanks for the great input again. It was the phpagi path that I had
> wrong in the .agi file. Once that was set properly everything works
> fine. Now, I need to find out a way to check status of a registered
> peer. Wondering if there is a request I can send for that in the
> phpagi?!

I think you need to use the Manager API for that. Two ways:

You could use PHP's system() call to run "asterisk -r ...." and capture and 
parse the output.

Or you could get a asterisk manager library for PHP and do it as a function.

Which you choose depends on how often Asterisk will call the AGI script.

-- 
John Van Ostrand 
CTO, co-CEO 
Net Direct Inc. 
564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6 
Ph: 866-883-1172 x5102 
Fx: 519-883-8533 

Linux Solutions / IBM Hardware 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to