What languages can I use?

With AGI scripting, Asterisk passes data to your script via STDIN, and your script passes information back via STDOUT. Arguments passed to the agi() application within Asterisk appear like command line arguments to the script. Because of this, AGI scripting can be done in almost any language, just like CGI scripts.

Commonly used AGI scripting languages include C, Perl, Python, and PHP.