search for: wait_for_digit

Displaying 8 results from an estimated 8 matches for "wait_for_digit".

2010 Jan 08
1
How to recieve number returned by $AGI->wait_for_digit($timeout)
hi, i use $AGI->wait_for_digit($timeout) to wait for the user press key 1 ,and then to do something. but how can i get the return number ? is that use $key = $AGI->wait_for_digit($timeout) and $key will be "200 result=49" if i pressed number 1? Thanks! -- Best regards, Sucan
2004 May 10
1
AGI.pm wait_for_digit() not working for me!!!
Hello everybody!!! I really need your help guys, I am using the AGI mode in meetme application, and I want that AGI should wait for an input from the client/user i.e. a digit and then proceed, but I have used that AGI function agi->wait_for_digit(), but no use....my agi just passes, or ignores this function, where AGI should stop here and wait for the input.... .....my extension in my dialplan..... exten => 21,1,answer exten => 21,2,meetme(21|pb) ..........and here is my AGI........... #!/usr/bin/perl -w #use strict;...
2009 Aug 31
4
How to stop IVR once system receives DTMF?
Hi, We are trying to implement a complex business logic in Asterisk. Executing "Wait_For_Digit" command after playing IVR. We want to stop the IVR once we receive the digit. It is not recognizing the Digit until it completes the IVR. How can we stop the IVR once we receive the digit? Thanks BB -------------- next part -------------- An HTML attachment was scrubbed... URL: http...
2003 Apr 11
1
Weird AGI/X100P behavior
...n 'Zap/1-1' The line never gets answered, though....unless I use one of the sample AGI scripts that come with *. My hanguptest.agi file is pretty simple: #!/usr/bin/perl use Asterisk::AGI; $|=1; $AGI = new Asterisk::AGI; %input = $AGI->ReadParse(); $AGI->answer(); $foo = $AGI->wait_for_digit(); print STDERR "Foo: $foo\n"; $AGI->say_digits('$foo'); $AGI->hangup; Am I missing something basic about AGI?
2003 Jul 03
0
app_festival not cleaning up properly?
...esivalBG instead of Festival to make the problem easier to see # if you have applied my Festival patch. my $retval = chr($AGI->exec('Festival', '"i"')); print STDERR "$$: Festival returned: ($retval)\n"; my $input = chr($AGI->wait_for_digit('5000')); print STDERR "$$: Button pressed: ($input)\n"; $tries++; } $AGI->hangup(); Set up an extension to call this AGI and then call it from one or more phones. (the more channels you get on it the easier it is to duplicate the problem, though it will very r...
2010 Jan 11
1
MeetMe Conferencing - Announce your own join/leave to yourself and other conference members
...tchrow_hashref(); $v{q}->finish(); $v{dbh}->disconnect; if ($v{r}{members} > 1) { $AGI->stream_file("/var/spool/asterisk/meetme/meetme-username-".$v{conf}."-".$v{r}{members}); } while (!$v{loop}) { exit if (!$AGI->channel_status($v{chan})); $v{rc} = $AGI->wait_for_digit('60000'); } exit;
2003 Aug 28
1
Problems with TDM400P & X100P
...#$AGI->verbose("X${value}X$input{$value}XX"); #} my $finished = 0; $extension = $input{"extension"}; substr($extension, 0, 1) = ''; if ( -e "/var/lock/LCK..ttyS1" ) { $AGI->stream_file('internet_busy'); $response = chr($AGI->wait_for_digit('5000')); if ($response ne "2") { $AGI->set_priority(99); exit; } } system ("/bin/killall diald"); sleep 3; $AGI->exec('Dial', "Zap/5/$extension"); system ("/usr/sbin/diald"); --------...
2003 Nov 26
3
AGI - CallerID ??
I have a client who needs an application for there field techs to call in when they arrive on site and when they leave. The logic behind it seems pretty simple. I am going to write something in AGI to capture some DTMF tones and update this data into MySQL to run some reports from. But here's my initial problem. I have started to create a simple AGI script to capture the CallerID, but I