<div dir="ltr"><div>Hello list,</div><div>Hope you all doing  well!</div><div><br></div><div>Recently, I had an issue with a FastAGI PHP script, which under some specific situation would run into an infinity loop, consuming all CPU resources. This also was preventing Asterisk to terminated the call properly because it was waiting for the AGI to return... The application uses AGIspeedy to process the AGI calls, not sure if this can be affecting this situation somehow....<br></div><div>Due to this problem I started looking for some option to timeout the AGI call and return to the dialplan after XYZ seconds and so this would protect Asterisk preventing the dialplan to get stuck due to some external script problem that is actually outside of Asterisk control. Does Asterisk provide some control of this sort? I searched around and could not find any..... <br></div><div>Any idea is appreciated!</div><div><br></div><div>Kind regards</div><div>Patrick Wakano<br></div></div>