There are several AGI applications used at different times in the call process.
Normally you use AGI. If the call has been hungup, you use DeadAGI, and then there is FastAGI, which uses a TCP connection instead of spawning a new process.
Does anyone know if FastAGI will work after a channel has been hung up? Or is there some sort of DeadFastAGI that I would need to use instead?