Name
DeadAGI() — Executes an AGI-compliant script on a dead (hung-up) channel
Synopsis
DeadAGI(program,args)
Executes an AGI-compliant
program on a dead (hung-up) channel. AGI
allows Asterisk to launch external programs written in almost any
language to control a telephony channel, play audio, read DTMF digits,
and so on by communicating with the AGI protocol on STDIN and STDOUT. The arguments specified by
args will be passed to the program.
This application has been written specifically for dead channels, as the normal AGI interface doesn’t work correctly if the channel has been hung up.
Use the show agi command on
the command-line interface to list all of the available AGI
commands.
exten => h,1,DeadAGI(agi-test)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access