<HTML>
<HEAD>
<TITLE>FW: [Asterisk-Users] Retrieving dtmf, passing to shell and getting the result</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Courier, Courier New"><SPAN STYLE='font-size:13.0px'>John thanks for the help. When I change my plan to this and then dial 2 it gives me a busy signal. When troubleshooting I added an exten => 2,1 Ringing (just as a check) it rang and went straight to busy. On the console I got:<BR>
--Executing Ringing(“SIP/-00816800”, “”) in new stack<BR>
==Spawn extension(default, 2, 2) exited non-zero on ‘SIP/-00816800’<BR>
<BR>
Any ideas?<BR>
<BR>
Jane<BR>
<BR>
>Jane,<BR>
>try this<BR>
> exten => 2,2,read (firstnumber,enter-first,5)<BR>
> exten => 2,3,read (secondnumber,enter-second,2)<BR>
> exten => 2,4,system(/usr/local/Scripts/CheckNumbers.sh ${firstnumber} <BR>
>${secondnumber})<BR>
>I believe it is the syntax that is holding you back.<BR>
>John M<BR>
<BR>
Original Post<BR>
>><I> I have my asterisk server up and running on OS X and now need to add the<BR>
</I>>><I> capability to play a sound file asking for a 5 digit number, play another<BR>
</I>>><I> message asking for a 2 digit number, pass these variables to a shell<BR>
</I>>><I> script, and get the result. I have tried a number of different scenarios<BR>
</I>>><I> but they are not working. I have read through the wiki, past posts, and<BR>
</I>>><I> numerous websites.<BR>
</I>>><I> The sound files are enter-first & enter-second<BR>
</I>>><I> The shell script is CheckNumbers.sh<BR>
></I>><BR>
<I>></I>><I> exten => 2,2,get_data ("enter-first","10000","5")<BR>
></I>> <I>exten => 2,3,get_data ("enter-second","10000","2")<BR>
></I>> <I>exten => 2,4,system(/usr/local/Scripts/CheckNumbers.sh ${firstnumber,<BR>
></I>> <I>secondnumber)<BR>
></I>><BR>
<I>></I>><BR>
<I>></I>> <I>I really appreciate your help!<BR>
></I>><BR>
<I>></I>> <I>Jane<BR>
</I></SPAN></FONT></FONT>
</BODY>
</HTML>