<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><font color="#000000">Thanks Mathew. I
understand that there is no coordination between AsyncAGI &
AMI.<br>
Is there any dial plan function which can tell us if there is
active AMI session? <br>
</font>
<pre class="moz-signature" cols="72"><font color="#000000">Thanks & Regards,
Amit Patkar
</font></pre>
<font color="#000000">On 9/21/2016 6:27 PM, Matthew Jordan wrote:<br>
</font></div>
<blockquote
cite="mid:CAN2PU+4WGbQfJSPuFsMVYcuM8SfcushY9iWvMB_OVu9KTSkNbw@mail.gmail.com"
type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap=""><font color="#000000">On Tue, Sep 20, 2016 at 10:49 PM, Amit Patkar <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:amit@avhan.com"><amit@avhan.com></a> wrote:
</font></pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><font color="#000000"><span class="moz-txt-citetags">> </span>It means, AMI application is no more running or crashed or lost network
<span class="moz-txt-citetags">> </span>connection with asterisk server.
<span class="moz-txt-citetags">> </span>In such cases call is neither answered nor disconnected by Asterisk. I want
<span class="moz-txt-citetags">> </span>to detect such state and jump to next dial plan to answer or reject the
<span class="moz-txt-citetags">> </span>calls
<span class="moz-txt-citetags">></span>
</font></pre>
</blockquote>
<pre wrap=""><font color="#000000">No, there is no automatic coordination mechanism between AsyncAGI and
AMI. In fact, AsyncAGI doesn't know <b class="moz-txt-star"><span class="moz-txt-tag">*</span>which<span class="moz-txt-tag">*</span></b> AMI session is even
managing the channels - it just waits for the appropriate AMI action
to come across and signal something to the channels.
Your external application would have to manage this process. A simple
solution would be to use an AMI library that supports automatic
reconnects. On a reconnect, ask Asterisk for the current channels; if
any exist, handle their recovery either by determining their
application state or by releasing them back to the dialplan.
</font><div class="moz-txt-sig"><font color="#000000">--
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://digium.com">http://digium.com</a> & <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asterisk.org">http://asterisk.org</a>
</font><div class="moz-txt-sig"><font color="#000000">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asterisk.org/community/astricon-user-conference">http://www.asterisk.org/community/astricon-user-conference</a>
New to Asterisk? Start here:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</font></div></div></pre>
</div>
</blockquote>
<font color="#000000"><br>
<br>
</font>
</body>
</html>