<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<div align="justify"><small>I have experienced similar problems with
AGI some time ago... sometimes, the script just get to the 'WAIT FOR
DIGIT' function and the streamed audio file before it is a little
'long' and the timeout runs while you are still listening the audio... </small><small>Try
testing with a very large timeout number, let us say... 10 seconds... ,
that will get u some clue of the problem, </small><small>If the
timeout still gets too fast then the function is not working as spected
(i have experienced that problem too),</small><br>
</div>
<small><br>
test and give us ur result, :)<br>
<br>
<br>
J. Espinal,</small><br>
<br>
<br>
<br>
<br>
Camilo Echeverry wrote:
<blockquote
cite="midaf8eb080702130813k539b5729q2f233410b5cb6e44@mail.gmail.com"
type="cite">Hi.<br>
I'm trying to get digits form the user via agi<br>
something like this: this only should print result=asciicode<br>
<br>
but none of the functions even wait until timeout .. <br>
they just pass .. (after a nanosecond)
<br>
<br>
the las print is always timeout.<br>
<br>
Any clue ..?<br>
<br>
<br>
my $callerid = $AGI{'callerid'} ;<br>
if($callerid !~ /[0-9]{7,20}/){<br>
#way numbre one<br>
print "EXEC PLAYBACK please_enter_your_number \"\"\n"; my $result
= <STDIN>;
<br>
print "WAIT FOR DIGIT 3000\n"; my $result = <STDIN>;<br>
<br>
# Way number two<br>
# print "GET DATA please_enter_your_number \"-1\" \"10\""; my
$result = <STDIN>;
<br>
<br>
}<br>
print STDERR "$result";<br>
<br>
<br clear="all">
<br>
-- <br>
Camilo Echeverry<br>
<br>
Your life would be very empty if you had nothing to regret.
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>