Asterisk Gateway Interface
From Wikipedia, the free encyclopedia
Asterisk Gateway Interface (AGI) is the interface with which the Asterisk (PBX) communicates with user-created scripts. It is similar to CGI in that any language can be used, and scripts communicate with Asterisk via stdin and stdout.
FastAGI is a way to use AGI without the overhead of creating a new process for every call. It uses a TCP socket instead of stdin and stdout for communication, thus allowing just one process to be started, and either multiplexing the script, or using forking to handle each request. The default port for FastAGI is 4573.