PHPAGI from Command Line?

Hi,

I’ve written a few AGI scripts using the PHPAGI class. I am invoking the AGI through the use of a GUI that lets me transfer callers to an AGI at some point during a call.

Now, however, I want to start an AGI script that doesn’t rely on a caller. For example, I’d like to use agi->channel_status to get the status of each phone line (I have several analog lines) and write that status to a log file, the screen, a database, or the like (log file is probably the easiest).

So, once I’ve got the script written, is there a way to invoke it from the command line?

Thanks,
Joel

i think you will need the manager api to do that:

voip-info.org/wiki-Asterisk+manager+API