[asterisk-dev] Need to run an AGI from dialplan only upon call hold
Matthew Jordan
mjordan at digium.com
Fri Aug 31 11:49:16 CDT 2012
----- Original Message -----
> From: "uma udupi" <umaudupi at yahoo.com>
> To: "Olle E. Johansson" <oej at edvina.net>, "Asterisk Developers
> Mailing List" <asterisk-dev at lists.digium.com>
> Sent: Friday, August 31, 2012 11:14:08 AM
> Subject: Re: [asterisk-dev] Need to run an AGI from dialplan only
> upon call hold
> My requirement is NOT to play MOH, but play something else (that
> could be an IVR, asking for some input from the party being held).
> With AMI I don't know if I can achieve the same - It looks like
> musiconhold event is triggered upon starting the MOH, and also as an
> AMI will I have control over the media streams?
My reply to use the MOH events was based on using what is currently
available in Asterisk. If you want to modify the source, you could certainly
add your own Asterisk AMI events wherever you want them.
As for controlling the media stream sent to a channel using AMI, there
are ways that can be done. You could use AsyncAGI
(http://ofps.oreilly.com/titles/9780596517342/AGI.html), or creative use
of the Redirect Manager Action
(https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+ManagerAction_Redirect).
Some folks could probably think of some others as well.
Note that using Redirect will *highly* depend on your dialplan as to what
experience you create for your end user.
--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
More information about the asterisk-dev
mailing list