[asterisk-dev] Is there a way to abort an Async AGI play (or perhaps use some internal digit collecting)?
Chris Tooley
chris at tooley.com
Fri Feb 26 14:49:13 CST 2010
This is exactly the kind of scenario that ExternalIVR was designed
for. Not only can you interrupt based on AMI, you can interrupt based
on any external input at all. Our first application did playback
interruptions when a notification event happened from a web service
operated by one of our partners. I highly recommend re-evaluating the
implementation and look at ExternalIVR.
On Fri, Feb 26, 2010 at 2:34 PM, Dan Cropp <dan at amtelco.com> wrote:
> Some background information…
>
>
>
> I am using AMI to interface with Asterisk 1.6.2.
>
> With this interface, as calls come in, I have scripts built to control call
> flow and interface to external applications.
>
>
>
> I need to be able to play a file and collect digits at the same time. I
> detect the digits via the DTMF Events on the AMI interface. I use the Get
> Option command to start the play. However, I encountered a slight timing
> bug. Asterisk can detect the DTMF digit at the same time our application is
> sending a Get Option Command. The result is that my application sees the
> digit, which is exactly as expected. When this occurs, I want to be able to
> stop the play, but I have not been able to find any AMI, AGI command, or
> Application to allow us to abort an existing play.
>
>
>
> In the past, I have worked a few board related voice vendors and they have
> used two different approaches:
>
> Some vendors have an internal digit collector. When a play is initiated,
> several options are passed in (# of digits to collect, clear existing digit
> queue flag, timeout, etc).
>
> Other vendors provide events to notify the application when a digit is
> pressed/released. In this environment, the application is responsible for
> most of the work. The key feature is that provide a way for the application
> to be able to stop the play.
>
>
>
> Is there any way to implement either of these digit collecting approaches
> using Asterisk? If not, is there some other way to get around this problem?
>
>
>
> Have a great day!
>
>
>
> Dan
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
--
Chris Tooley
mobile: 615-525-8067
Instant Messenger
MSN: ctooley at ntrc.net
AIM: mrchristooley
Yahoo: mrchristooley
Google Talk: ctooley at gmail.com
More information about the asterisk-dev
mailing list