title: How long Asterisk wait for an AGI call?
body: <p>I have a simple dialplan in Asterisk 13</p>
  
  <pre><code>exten =&gt; 800,1,Answer()
   ;AGI do something and return AUDIO_FILE tobe played
   same =&gt; n,Agi(agi://localhost:1000/doAlotOfThing.agi)
   same =&gt; n,Playback(${AUDIO_FILE}
   same =&gt; n,Hangup()
  </code></pre>
  
  <p>I was expect Asterisk will wait for AGI until it done processing the command then return AUDIO_FILE variable (about 20 seconds). But the actual is Asterisk just wait about few seconds, and even Agi is not done yet, it still passing it and playing AUDIO_FILE (which not be initialized)
  So the question is: How i can change the AGI timeout setting in Asterisk?</p>