Retrieving dtmf, passing to shell and getting the result I have my asterisk server up and running on OS X and now need to add the capability to play a sound file asking for a 5 digit number, play another message asking for a 2 digit number, pass these variables to a shell script, and get the result. I have tried a number of different scenarios but they are not working. I have read through the wiki, past posts, and numerous websites. In my latest variation when I dial extension 2 it immediately goes busy. At the console I get an error
==Spawn extension(default, 2, 2) exited non-zero on SIP/-00816800
exten => 2,2,read (firstnumber,enter-first,5)
exten => 2,3,read (secondnumber,enter-second,2)
exten => 2,4,system(/usr/local/Scripts/CheckNumbers.sh ${firstnumber} ${secondnumber}) |