Something inbetween background() and playback()

hi guys i need to create a section in the ivr that does exactly what:


would do but is interuptable like background()…

the reason is i dont like backgruond because it goes to the extension pressed, i want to process (add digits to it) the extension pressed but give the customer the ability to interupt the played emssage…

The third option of Read() is the max number of dtmfs accepted, so when the caller has pressed this number of dtmfs the playback of the message (second parameter) is interrupted, hope this helps you.


Marco Bruni

thank you for the reply however, asterisk read cmd, only accepts one filename, the filenames are multiple to be played back per time