FW: [Asterisk-Users] Retrieving dtmf, passing to shell and getting the result

Jane Reeder jane_reeder at earthlink.net
Mon Jul 11 09:28:54 MST 2005


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:
--Executing Ringing(³SIP/-00816800², ³²) in new stack
==Spawn extension(default, 2, 2) exited non-zero on ŒSIP/-00816800¹

Any ideas?

Jane

>Jane,
>try this
> 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})
>I believe it is the syntax that is holding you back.
>John M

Original Post
>> 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.
>> The sound files are enter-first & enter-second
>> The shell script is CheckNumbers.sh
>>
>> exten => 2,2,get_data ("enter-first","10000","5")
>> exten => 2,3,get_data ("enter-second","10000","2")
>> exten => 2,4,system(/usr/local/Scripts/CheckNumbers.sh ${firstnumber,
>> secondnumber)
>>
>>
>> I really appreciate your help!
>>
>> Jane

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050711/9258be6a/attachment.htm


More information about the asterisk-users mailing list