[asterisk-users] Newbie IVR: How to read() before playback() is finished?

Tony Mountifield tony at softins.clara.co.uk
Thu Mar 20 05:27:26 CDT 2008


In article <136A969E54082648AD45F9228A75F53C034D30B2 at apac-syd-ex001.apac.cpwr.corp>,
Lee, John (Sydney) <John.Lee at compuware.com> wrote:
> I am working on a menu to accept input from a caller like as follows:
> 
> Exten => 100,1,Answer()
> Exten => 100,n,Playback(LONG-MESSAGE)
> Exten => 100,n,Read(OPTION,,2)
> ...
> 
> When I tested it, I noticed if I start pressing a key before the
> Playback() is finished, the input is not buffered (simply ignored) and I
> have to listen to the whole message before I could re-enter again.
> 
> Is there a way that I could press a key and it will be Read() before the
> Playback is finished?

Try this:

exten => 100,1,Answer()
exten => 100,n,Read(OPTION,LONG-MESSAGE,2)

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