That being the case, you are going to need to do a dialplan modification
something like this:
Exten => _X.,1.Set(answerstatus=false)
exten => _X.,2,AGI(agi:async)
exten => _X.,3,Gotoif($["${answerstatus}"=="false"?7:4)
exten => _X.,4,Answer
exten => _X.,5,Playback(some-message)
exten => _X.,6,Hangup
exten => _X.,7,Verbose(adhesion failed)
exten => _X.,8,Playback(failure-message)
exten => _X.,9,Hangup
From: [email protected]
[mailto:[email protected]] On Behalf Of Pavel Siderov
Sent: Monday, September 10, 2012 3:57 AM
To: [email protected]
Subject: Re: [asterisk-users] Async AGI
Hi Danny,
I am running it asynchronously because adhearsion needs it.
Regards,
Pavel
Date: Wed, 5 Sep 2012 11:28:46 -0500
From: "Danny Nicholas" <[email protected]>
Subject: Re: [asterisk-users] Async AGI
To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
As I understand it, when the AGI is asynchronous, you lose the control of
checking for completion, etc. Since you are running prior to answer(), why
run it asynchronously.
From: [email protected]
[mailto:[email protected]] On Behalf Of Pavel Siderov
Sent: Wednesday, September 05, 2012 11:26 AM
To: [email protected]
Subject: [asterisk-users] Async AGI
Hi,
Is there a way to execute next priority in the dialplan if you have called
agi:async? I want to play warning message if adhearsion is down. Currently I
wasn't able to make it work. The dialplan execution ends after the first
priority.
[incomming]
exten => _X.,1,AGI(agi:async)
exten => _X.,2,Answer
exten => _X.,3,Playback(some-message)
exten => _X.,4,Hangup
Regards,
Pavel
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users