After having looked at various FastAGI offerings , I had decided I really did not care for any of them.
Being as I can just as easily create daemons in C++ or PHP, I had a choice to make.
For ease of development I elected to create a generic PHP daemon that would
allow me to dynamically load PHP scripts via the dial plan.
This makes development really easy as I can simply edit,save and dial, vs. any kind of
compiling or restarting after an edit to a particular PHP script.
When a script is called it is passed a reference to a PHP object containing all the
information passed by asterisk as well as interfaces to both AGI and AMI resources, and
soon a MySql reference as well so a script has everything it needs in a nice thin interface.
I've posted the code for it at google projects.
code.google.com/p/fastagi-php-drclue/
There is also a WIKI with documentation on installation, class methods and such along with
a couple of example scripts.
The FastAGI.php script even has a command line option that will generate the init.d
script so that the FastAGI.php daemon will start at boot.
Enjoy!!!
