Asterisk Dialpan Data Entry?

Asked by At

I would like to be able to do some basic data entry with Asterisk and a dialpad. I would like to start with something simple, echoing a series of numbers.

Something like: Call special number Enter a series of numbers with dial pad Hit star/pound Echo back the numbers Hang up

How would I accomplish this?

1 Answers

some On

You could use the Read application and then use SayDigits to say the digits.

exten => 9100,1,Answer()
 same => n,Read(digits,enter_code,10,s,1,20)
 same => n,SayDigits(${digits});
 same => n,Hangup()

Note: enter_code is the voice file to use as a prompt to tell the user what to enter. You must record that file yourself.