Accept user input during prompt

Is there a good way in an Asterisk dialplan to play a prompt and accet user input before the prompt finishes? We have an account code prompt that users would love to skip and just enter their 4 digit account code while the Swift voice is saying “Account code”.

Right now, Asterisk won’t accept that input until the voice is finished. Any examples of dialplans that include a prompt and accept input at the same time? Or do I need to write an AGI script for that?

Just use the Read() dialplan application, voip-info.org/wiki/view/Asterisk+cmd+Read .

Cheers.

Marco Bruni
www.marcobruni.net

Is it possible for Read to call swift and still accomplish this?

Not directly, you can use a sound file generated with a tts engine but it has to be stored somewhere.

Cheers.

Marco Bruni
www.marcobruni.net

Use Background() instead of Playback() to speak the prompt.