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? -- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
Sergey Kuznetsov
2005-Jan-17 16:48 UTC
[Asterisk-Users] Wait(n) -v- Background(silence/n) ?
In my AGI script I made the next trick: $digit = $AGI->get_data("vm-enter-num-to-call-then-pound", 15000, 1); while ( $digit eq 0 or $digit ) { $phoneNum .= $digit; $digit = $AGI->get_data("empty", 7000, 1); } where file empty.gsm have 0 byte length. It works like a charm for me. All the Best! Sergey. 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? > > >
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? > > >WaitExten(n) will
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? >The WaitExten and Read applications won't work for you?
Steven Critchfield
2005-Jan-17 21:41 UTC
[Asterisk-Users] Wait(n) -v- Background(silence/n) ?
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) -- Steven Critchfield <critch@basesys.com>