Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old July 12th, 2005, 03:26 PM
Junior Member
 
Join Date: Jun 2005
Posts: 3
jreeder
Default 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})
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old July 12th, 2005, 06:13 PM
Senior Member
 
Join Date: Jul 2005
Posts: 362
chandave is an unknown quantity at this point
Send a message via MSN to chandave
Default RE: Retrieving dtmf, passing to shell and getting the result

- Make sure you answer() the call first before trying to read(). I can't remember if read() would automatically answer() the call before attempting to read(). But an explicit answer() would ensure that the channels are all established and bridged.
- Try using using Vertical Bars ('|') instead of commas when separating the parameters of the read(). Vertical Bars are actually the proper parameter separator for Asterisk. The use of commas as a parameter separator is just semantic sugar that sometimes turns to molasses and gums up the parser. Try NoOp("this is , a test") and you'll see what I mean.
- Try sticking some NoOp()'s before the read(). I've noticed that Asterisk has some timing issues when trying to play sound files especially if it has to do Codec conversion (GSM<->uLaw/aLaw). Sticking in the NoOp()'s seems to help give it enough time to sync up the execution engine with the RTP streams.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old July 19th, 2005, 02:35 AM
mberlant's Avatar
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Retrieving dtmf, passing to shell and getting the result

Also, you need to establish the environment for listening for digits with the two exten commands DigitTimeout,5
and ResponseTimeout,10 before the read command.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing *82 lrr81765 Linksys (Sipura) VoIP Support Forum 5 February 21st, 2006 05:48 AM
Secure call feature not passing DTMF tones leejor Linksys (Sipura) VoIP Support Forum 2 January 5th, 2006 10:53 PM
Passing recall to PSTN mo0 Linksys (Sipura) VoIP Support Forum 1 October 24th, 2005 04:38 AM
Broadvoice Corporate Shell Game zenman BroadVoice Support Forum 24 May 21st, 2005 02:27 AM
Net2Phone Reports Fourth Quarter and Fiscal Year 2003 Result marcelo Press releases 0 October 22nd, 2003 09:44 PM



All times are GMT. The time now is 08:09 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.