Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] AsyncAGI - How to jump in dial plan when no action initiated on channel or AMI user is disconnected


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
amit at avhan.com
Guest





PostPosted: Sat Sep 17, 2016 6:28 am    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

Hi

Is there any way to detect inactivity on channel when AsyncAGI is used?
I want to detect whether application handling calls using AMI & AGI has stopped responding.

Alternatively, how can dialplan check if there is any AMI user connected and decide dial plan execution?

Thanks & Regards,
Amit Patkar
Back to top
mjordan at digium.com
Guest





PostPosted: Tue Sep 20, 2016 9:37 am    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

On Sat, Sep 17, 2016 at 6:26 AM, Amit Patkar <amit@avhan.com> wrote:
Quote:
Hi

Is there any way to detect inactivity on channel when AsyncAGI is used?
I want to detect whether application handling calls using AMI & AGI has
stopped responding.

What do you mean by "stopped responding"?

Quote:
Alternatively, how can dialplan check if there is any AMI user connected and
decide dial plan execution?

Thanks & Regards,
Amit Patkar

--
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
amit at avhan.com
Guest





PostPosted: Tue Sep 20, 2016 10:50 pm    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

It means, AMI application is no more running or crashed or lost network connection with asterisk server.
In such cases call is neither answered nor disconnected by Asterisk. I want to detect such state and jump to next dial plan to answer or reject the calls

Regards
Amit Patkar

On September 20, 2016 8:07:23 PM GMT+05:30, Matthew Jordan <mjordan@digium.com> wrote:
Quote:
Quote:
On Sat, Sep 17, 2016 at 6:26 AM, Amit Patkar <amit@avhan.com> wrote:
Quote:
Hi Is there any way to detect inactivity on channel when AsyncAGI is used? I want to detect whether application handling calls using AMI & AGI has stopped responding.
What do you mean by "stopped responding"?
Quote:
Alternatively, how can dialplan check if there is any AMI user connected and decide dial plan execution? Thanks & Regards, Amit Patkar
Back to top
mjordan at digium.com
Guest





PostPosted: Wed Sep 21, 2016 7:57 am    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

On Tue, Sep 20, 2016 at 10:49 PM, Amit Patkar <amit@avhan.com> wrote:
Quote:
It means, AMI application is no more running or crashed or lost network
connection with asterisk server.
In such cases call is neither answered nor disconnected by Asterisk. I want
to detect such state and jump to next dial plan to answer or reject the
calls


No, there is no automatic coordination mechanism between AsyncAGI and
AMI. In fact, AsyncAGI doesn't know *which* 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.

--
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
amit at avhan.com
Guest





PostPosted: Wed Sep 21, 2016 9:29 am    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

Thanks Mathew. I understand that there is no coordination between AsyncAGI & AMI.
Is there any dial plan function which can tell us if there is active AMI session?
Quote:
Thanks & Regards,
Amit Patkar
On 9/21/2016 6:27 PM, Matthew Jordan wrote:

Quote:
Quote:
On Tue, Sep 20, 2016 at 10:49 PM, Amit Patkar <amit@avhan.com> (amit@avhan.com) wrote:
Quote:
> It means, AMI application is no more running or crashed or lost network
Quote:
connection with asterisk server.
In such cases call is neither answered nor disconnected by Asterisk. I want
to detect such state and jump to next dial plan to answer or reject the
calls

No, there is no automatic coordination mechanism between AsyncAGI and
AMI. In fact, AsyncAGI doesn't know *which* 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.

--
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Back to top
mjordan at digium.com
Guest





PostPosted: Fri Sep 23, 2016 1:45 pm    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

On Wed, Sep 21, 2016 at 9:27 AM, Amit Patkar <amit@avhan.com> wrote:
Quote:
Thanks Mathew. I understand that there is no coordination between AsyncAGI &
AMI.
Is there any dial plan function which can tell us if there is active AMI
session?


Assuming you know the client name (login name), you can use the
AMI_CLIENT [1] dialplan function to retrieve the number of sessions
they have currently established.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_AMI_CLIENT

--
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
gmludo at gmail.com
Guest





PostPosted: Sun Sep 25, 2016 9:43 pm    Post subject: [asterisk-users] AsyncAGI - How to jump in dial plan when no Reply with quote

Hi Amit,
I'd some daemons that use AsyncAGI, but now, I use FastAGI again because:
1. Asterisk must call the daemon via socket: the realibility of this socket indicates implicitly that the daemon is alive and answer.
2. With FastAGI, it's really easy to implement the multi-worker pattern with pre-fork socket like with a http server to distribute the load.
With AsyncAGI, it needs more work and you have a spof with the dispatcher.
In fact, with FastAGI, the dispatcher is the Linux kernel itself, less risks of bugs.
My personal conclusion is: even if AsyncAGI is younger than FastAGI, it doesn't seem that it's always better in all situations Wink
Have a nice week at Astricon.
--
Ludovic Gasc (GMLudo)
http://www.gmludo.eu/
2016-09-21 5:49 GMT+02:00 Amit Patkar <amit@avhan.com (amit@avhan.com)>:

Quote:
It means, AMI application is no more running or crashed or lost network connection with asterisk server.
In such cases call is neither answered nor disconnected by Asterisk. I want to detect such state and jump to next dial plan to answer or reject the calls

Regards
Amit Patkar

On September 20, 2016 8:07:23 PM GMT+05:30, Matthew Jordan <mjordan@digium.com (mjordan@digium.com)> wrote:

Quote:
Quote:

On Sat, Sep 17, 2016 at 6:26 AM, Amit Patkar <amit@avhan.com (amit@avhan.com)> wrote:

Quote:
Quote:
Quote:
  Hi

  Is there any way to detect inactivity on channel when AsyncAGI is used?
  I want to detect whether application handling calls using AMI & AGI has
  stopped responding.


What do you mean by "stopped responding"?

Quote:

Quote:
Quote:
Quote:
  Alternatively, how can dialplan check if there is any AMI user connected and

Quote:
Quote:
Quote:
  decide dial plan execution?

  Thanks & Regards,
  Amit Patkar


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided byhttp://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
     http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
     https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services