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

Steven Critchfield critch at basesys.com
Tue Jan 18 10:19:58 MST 2005


On Tue, 2005-01-18 at 08:08 +0000, Tony Mountifield wrote:
> 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?

HMM, don't know, or don't remember. I just copied it out of a working
extensions.conf file and did't remember if we where using that section
either.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list