[asterisk-users] Play a number of files to a caller
Steve Edwards
asterisk.org at sedwards.com
Sun Aug 29 10:52:56 CDT 2010
Un-top-posting...
>> On Sat, 28 Aug 2010, Julian Lyndon-Smith wrote:
>>> I then want them to sit listening to music, until an event happens.
>>> When this (external) event happens, I want to play a certain file to
>>> the caller, using playback (so that they have ff / rw etc), and when
>>> finished, go back to the music.
> On 29 August 2010 01:29, Steve Edwards <asterisk.org at sedwards.com>
> wrote:
>> Check out externalivr().
On Sun, 29 Aug 2010, Julian Lyndon-Smith wrote:
> Not sure how this would allow the caller to ff / rw the file currently
> being played - would that portion have to be written in the external
> program ?
Your program receives the DTMF out of band. It would be easier if the DTMF
event included the file "interrupt" offset and the S command allowed you
to specify the starting offset... Bounty?
I'm wondering if you could do anything with specifying a named pipe to S
and specifying the starting offset to the process filling the pipe?
> Are there any examples of how to use externalivr anywhere (I can't find
> on google)
A VERY trivial example is available at http://www.sedwards.com/mfe.c
How about another tack?
How about an AGI playing ("stream file") a series of short "music"
segments while checking for your external event. (Remember that AGIs can
be multi-threaded if your external event needs it.) Then use "control
stream file" for your content playback?
Can you reply with a bit more narrative about your application?
What is the external event?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list