Plays a sound file while listening for sound from the
caller.
BackgroundDetect(soundfile
[,silence
[,min
[,max
]]])
Similar to Background()
, but
listens for sound also.
During playback of the sound file, the application monitors audio
on the incoming audio channel. If it detects a sound longer than
min milliseconds in duration but shorter than
max milliseconds, followed by a period of silence of
at least silence milliseconds, it stops playback and
passes the call to the talk
extension, if it
exists.
If silence, min and
max are not specified, the defaults are used: 1000
ms, 100 ms and unlimited, respectively.
Returns -1 on hangup, otherwise returns 0 (such as when playback
is interrupted due to input).
exten => 123,1,BackgroundDetect(symphony)
exten => 123,n,Playback(vm-sorry)
exten => talk,1,Playback(yes-please)