I've just started developing AGI scripts. I need to get some insigth on AGI execution flow. Is there some AGI specification regarding execution flow (how asterisk starts an AGI, how and when does asterisk stop/kill an AGI, when showld AGI stop itself, is Asterisk execution synchronous or asynchronous with Asterisk)....
My particular question is: can my AGI say exec('MixMonitor', ...), let the call proceed, go to sleep, and, after some timeout say exec('StopMixMonitor'). This way I could set a timeout for call recording.
Well... if the call ends before the timeout Asterisk will just kill the AGI won't it