[asterisk-dev] Background(file|n) blocking in early audio

Eric "ManxPower" Wieling eric at fnords.org
Sun Apr 22 18:21:57 MST 2007


Håkon Nessjøen wrote:
> Hi,
>  
> We were going to use "early audio" on a zap device to play a tune while the
> phone is ringing.
> But Background(audiofile,n) is suddenly a blocking call just like
> Playback(audiofile,noanswer).
> So the following Dial() line will not be used until the entire audio-file is
> done playing.
>  
> Is this a bug, or what? I can't se any documentation of this behaviour
> anywhere.
> Is this very hard to enable, code-wise?

The primary difference between Background and Playback is that 
Background listens for DTMF.  Since "early audio" might be better called 
"one-way audio" it seems pretty pointless to listen to DTMF.  What 
surprises me is that Background has a "noanswer" option.


More information about the asterisk-dev mailing list