Simpler solution.<br><br>What version of Asterisk.  1.2.x you had to enable (patch for) N+101, seems later versions are more graceful.<br><br><a href="http://www.voip-info.org/wiki/view/Asterisk+FastAGI">http://www.voip-info.org/wiki/view/Asterisk+FastAGI</a><br>
<h2 id="ErrorHandling">Error Handling+</h2><h3 id="Asterisk14amp16x">Asterisk 1.4 &amp; 1.6.x
</h3>As of Asterisk 1.4 a new channel variable, AGISTATUS, is set to
SUCCESS upon successful execution of an AGI. If there was a problem
connecting to the FastAGI service, the channel variable is set to
FAILURE, allowing the dialplan to perform alternate steps as not to
interrupt the call flow. If the calling channel hangs up during
execution of the AGI, AGISTATUS is set to HANGUP.
<br>
<br><h3 id="Asterisk12">Asterisk 1.2
</h3>Under Asterisk 1.2, if a request to a FastAGI service failed for any reason, the channel is hung up.  There is a <a class="external" onclick="javascript: pageTracker._trackPageview(&#39;/outgoing/wikipages/bugs.digium.com/view.php&#39; );" href="http://bugs.digium.com/view.php?id=4029">patch</a>
that addresses this problem by having Asterisk look for an n+101
priority in the event of a FastAGI failure, but this code is not
included in Asterisk by default.
<br>
<br>Thanks,<br>Steve Totaro<br><br><br><div class="gmail_quote">On Fri, Jun 26, 2009 at 5:29 AM, Michiel van Baak <span dir="ltr">&lt;<a href="mailto:michiel@vanbaak.info">michiel@vanbaak.info</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On 10:42, Fri 26 Jun 09, Arjan Kroon | Mobillion wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; How do you all handle the situation when a centrale fastagi server<br>
&gt; process(es) are down? AGI(..) prints &quot;Unable to locate host&quot; and the<br>
&gt; dailplan jumps to extension h.<br>
&gt;<br>
&gt; I&#39;d like to handle the return value and keeping the caller in the<br>
&gt; dailplan and not to the hangup extension.<br>
&gt; Any tips about how to handle a AGI(..) returns -1 condition?<br>
<br>
</div></div>Let it connect to localhost and use balance to handle the connection to<br>
a set of fastcgi servers so you have redundancy :)<br>
<div class="im"><br>
&gt;<br>
&gt; thx<br>
&gt;<br>
&gt; Arjan Kroon<br>
&gt;<br>
&gt; Mobillion BV<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div>&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
--<br>
<br>
Michiel van Baak<br>
michiel@vanbaak.eu<br>
<a href="http://michiel.vanbaak.eu" target="_blank">http://michiel.vanbaak.eu</a><br>
GnuPG key: <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x71C946BD" target="_blank">http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x71C946BD</a><br>
<br>
&quot;Why is it drug addicts and computer aficionados are both called users?&quot;<br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks,<br>Steve Totaro <br>+18887771888 (Toll Free)<br>+12409381212 (Cell)<br>+12024369784 (Skype)<br>