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 & 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('/outgoing/wikipages/bugs.digium.com/view.php' );" 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"><<a href="mailto:michiel@vanbaak.info">michiel@vanbaak.info</a>></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>
> Hi,<br>
><br>
><br>
><br>
> How do you all handle the situation when a centrale fastagi server<br>
> process(es) are down? AGI(..) prints "Unable to locate host" and the<br>
> dailplan jumps to extension h.<br>
><br>
> I'd like to handle the return value and keeping the caller in the<br>
> dailplan and not to the hangup extension.<br>
> 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>
><br>
> thx<br>
><br>
> Arjan Kroon<br>
><br>
> Mobillion BV<br>
><br>
><br>
><br>
><br>
><br>
<br>
</div>> _______________________________________________<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>
<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&search=0x71C946BD" target="_blank">http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD</a><br>
<br>
"Why is it drug addicts and computer aficionados are both called users?"<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>