Hi,
My Asterisk version: 11.9
When I am trying to store the dtmf input in a variable through read() function, it is not allowing me to store the entered digits during sound file playing. Once it completes the playing of welcome message, then only it is allowing me to store the input.
Below is my content:
(‘context’,’+11234567891’,‘1’,‘Answer’,’()’);
(‘context’,’+11234567891’,‘2’,‘Set’,‘TIMEOUT(digit)=5’);
(‘context’,’+11234567891’,‘3’,‘Set’,‘TIMEOUT(response)=20’);
(‘context’,’+11234567891’,‘4’,‘Background’,‘greeting-welcome’);
(‘context’,’+11234567891’,‘5’,‘NoOp’,‘BEGIN EXECUTING AFTER WELCOME GREETING’);
(‘context’,’+11234567891’,‘6’,‘Read’,‘dtmfinput,3’);
(‘context’,’+11234567891’,‘7’,‘NoOp’,‘DTMFINPUT=${dtmfinput}’);
(‘context’,’+11234567891’,‘8’,‘NoOp’,‘READSTATUS=${READSTATUS}’);
(‘context’,’+11234567891’,‘9’,‘NoOp’,‘END EXECUTING AFTER MNCL GREETING’);
(‘context’,’+12092436999’,‘10’,‘WaitExten’,‘5’);
(‘context’,’+12092436999’,‘11’,‘Hangup’,’()’);
What I have to do to record the user DTMF input, while playing the audio file?
Any help would be appreciated. Thanks in advance.
Regards,
Mouli.