login | register
Fri 09 of May, 2008 [16:22 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
  • Christopher Faust, Wed 07 of May, 2008 [15:28 UTC]: When I try to startx I ge input not supported. Though before installing asterisk I had no video issue to start the GUI
  • Christopher Faust, Wed 07 of May, 2008 [15:26 UTC]: Hi Nick, I got centos 5.1 and asterisk up But now I cannot start startx I have set the depth from 24 to 16 for the video i810 driver for the i845 on my netvista machine but I cannot start GNOME. Please advise
  • Nick Barnes, Wed 07 of May, 2008 [10:01 UTC]: Howard - You'll need to provide a lot more information if you really want help.
  • Nick Barnes, Wed 07 of May, 2008 [10:00 UTC]: Christopher - Search the Wiki and you'll find a page I wrote detailing exactly what you have to do for Asterisk 1.4 + CentOS 5.1.
Server Stats
  • Execution time: 0.35s
  • Memory usage: 2.19MB
  • Database queries: 33
  • GZIP: Disabled
  • Server load: 0.90

get data

Usage: GET DATA <file to be streamed> [timeout] [max digits]

Stream the given file, and recieve DTMF data.

This is similar to stream file, but this command can accept and return many DTMF digits, while stream file returns immediately after the first DTMF digit is detected.

Asterisk looks for the file to play in /var/lib/asterisk/sounds/ by default.

If the user doesn't press any keys when the message plays, there is <timeout> milliseconds of silence then the command ends.

The user has the opportunity to press a key at any time during the message or the post-message silence. If the user presses a key while the message is playing, the message stops playing. When the first key is pressed a timer starts counting for <timeout> milliseconds. Every time the user presses another key the timer is restarted. The command ends when the counter goes to zero or <max digits> are entered, whichever happens first.

If you don't specify a <timeout>, then a default timeout of 2000 is used following a pressed digit. If no digits are pressed then 6 seconds of silence follow the message.

If you don't specify <max digits>, then the user can enter as many digits as they want.

Pressing the # key ends the command. When ended this way, the command ends successfully with any previously keyed digits in the result. A side effect of this is that there is no easy way to read a # key using this command. However, it is possible to read a single # key, as the result will be empty, but the timeout attribute will not be present: "200 result=".


Returns:
failure: 200 result=-1
timeout with pressed digits: 200 result=<digits> (timeout)
timeout without pressed digits: 200 result= (timeout)
success: 200 result=<digits>

<digits> is the digits pressed.




Go back to Asterisk AGI
Created by awysocki, Last modification by jesselang on Sun 30 of Sep, 2007 [04:53 UTC]

Comments Filter

Read() in replacement of GET DATA if it doesn't work with you

by thunderjet on Tuesday 04 of December, 2007 [11:24:53 UTC]
this agi command does not function very well. It sometimes work and sometimes not. A work around here is to use the Read() command in replacement of GET DATA.

"EXEC Read $varname|$file|$length"


reading #

by stever on Saturday 24 of September, 2005 [05:08:09 UTC]
use the following code to read #

if($dtmfResultresult>'result'==NULL && $dtmfResultdata>'data'==NULL ) {
 // # entered;
} elseif($dtmfResultresult>'result'=='-1') {
 // timeout;
} else {
 // other keys entered;
}

Steve
http://www.PropertyHotline.ca

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver