[asterisk-users] Re: Play audio and continue to next prioritybefore audio ends...

Alexander Lopez Alex.Lopez at OpSys.com
Wed Apr 11 05:44:37 MST 2007



> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Gordon Henderson
> Sent: Wednesday, April 11, 2007 8:30 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Re: Play audio and continue to next
> prioritybefore audio ends...
> 
> On Wed, 11 Apr 2007, Tony Mountifield wrote:
> 
> > Alejandro Mejía <noc at carmeltelecom.com> wrote:
> >>
> >> I would like to know how to playback an audio file to the caller, and
> while
> >> it's played asterisk to continue executing the next priorities on
> >> extensions.conf
> >> That's not the case when using "playback" command, because the next
> priority
> >> is executed until the audio file ends playing. I want to evaluate some
> >> variables while caller hears the audio file.
> >>
> >> Any ideas?
> >
> > Look at the Background() application. It does just what you are asking
> for.
> >
> > I'm surprised no-one else has mentioned this.
> 
> Are you sure it does that?
> 
> I'm under the impression that it waits until the sound(s) have finished
> playing before moving on to the next priority. (While "listening" for
> digits to be pushed, then be dialled)
> 
>    -= Info about application 'BackGround' =-
> 
Snip

What the OP is requesting is that they are able to perform logic (ie Database Lookups, Parsing of information, etc.) while a sound file is playing.

The only way I have been able to do this is with an AGI.

Alex



More information about the asterisk-users mailing list