[Asterisk-Users] Re: Wait(n) -v- Background(silence/n) ?

Tony Mountifield tony at softins.clara.co.uk
Tue Jan 18 01:08:55 MST 2005


In article <1106023295.21104.10.camel at critch>,
Steven Critchfield <critch at basesys.com> wrote:
> On Tue, 2005-01-18 at 10:44 +1100, Howard Lowndes wrote:
> > Will Wait(n) still listen for DTMF input from the caller after there has
> > been a Background(some-message) prompt, or do I need to use
> > Background(silence/n) to still listen for DTMF?
> 
> You don't need anything but a proper gap. You need to program the
> extensions like you do with a event loop. 
> 
> exten => s,1,Wait,0
> exten => s,2,Answer
> exten => s,3,DigitTimeout,5
> exten => s,4,ResponseTimeout,10
> exten => s,5,BackGround,demo-congrats
> 
> ; This is a blank area that just waits to get DTMF for up to 10 
> ; seconds due to the ResponseTimeout
> 
> exten => t,1,Goto(somewhere-due-to-timeout)

What's the reason for having a zero-length Wait befor the Answer?

Cheers
Tony

-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list