Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Asterisk Gateway
Interface (AGI) is a software interface and communications protocol for
application level control of selected features of the Asterisk PBX. AGI
allows an external, user-written program, launched from the Asterisk
dial plan via pipes to control telephony operations on its associated
control and voice channels. It is similar to the CGI feature of web
servers in allowing any language to be used for writing the external
program which communicates with Asterisk via stdin and stdout. While the
initial feature set of AGI included only a procedural control of
Asterisk operations via commands and response handshake, Enhanced AGI
(EAGI) also provided out-of-band access to the incoming audio stream.