[asterisk-dev] Implementing priodic announces in Dial
Leif Madsen
leif.madsen at asteriskdocs.org
Mon Feb 2 11:57:45 CST 2009
Saúl Ibarra wrote:
> Hi all,
>
> I'm thinking abount implementing (or at least trying to do it :) )
> priodic announces in Dial application. I actually came to the need of
> having some klnd of announcement to the caller whil he hears the
> ringing and I can't see how to do it without touching the code.
>
> At first I tried it whith Local channels and dialplan configuration,
> later I tried with retrydial, but I can't achieve waht I really want.
> I'd like to have some application (or parameter to the Dial
> application) which reproduces a given filename each fiven seconds of
> time to the calling party.
>
> I've been through the code (I'm not an expert Asterisk programmer) and
> can't find the right place to implement this behaviour... should I do
> it on the wait_for_answer function?
>
> I'd be really happy to implement this, but first I need a little help
> to start... :)
What about using ChanSpy() with the whisper functionality along with an
Originate manager action and a dialplan that plays back the audio you want to
send? Never tried it while ringing was happening, but I think it should work as
long as you're not using the 'b' flag.
Leif Madsen.
More information about the asterisk-dev
mailing list