<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>Greatly appreciate 
if some one help me with the application read().</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>asterisk*CLI&gt; 
show application read<BR>asterisk*CLI&gt;<BR>&nbsp; -= Info about application 
'Read' =-</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>[Synopsis]:<BR>Read 
a variable</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004>[Description]:<BR>&nbsp; 
Read(variable[|filename]):&nbsp; Reads a '#' terminated string of digits 
from<BR>the user, optionally playing a given filename first.&nbsp; Returns -1 on 
hangup or<BR>error and 0 otherwise.<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>I need to 
collect&nbsp;a variable length digit string terminated by # and then pass those 
digits&nbsp; to an agi script. I&nbsp;can do this as follows (when I know the 
length of the string).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>exten =&gt; 
s,1,BackGround(please-enter-the-fourdigit-pin)<BR>exten =&gt; 
s,2,DigitTimeout,5<BR>exten =&gt; s,3,ResponseTimeout,10<BR>exten =&gt; _XXXX,1, 
agi, agiscript.agi</SPAN></FONT></DIV><FONT><SPAN class=324375914-23062004>
<DIV><BR><FONT face=Arial size=2>I would like to use Read() here, 
like</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2>exten =&gt; 
s,1,BackGround(please-enter-the<SPAN 
class=324375914-23062004>-pin</SPAN>)<BR>exten =&gt; 
s,2,Background(followed-by-pound)<BR>exten =&gt; s,3,DigitTimeout,5<BR>exten 
=&gt; s,4,ResponseTimeout,10<BR>exten =&gt; s,5,Read(${EXTEN})<BR><SPAN 
class=324375914-23062004>exten =&gt; ???????/</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=324375914-23062004></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=324375914-23062004>This will read 
the digits but I do not know how to proceed after the 
reading.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>Thanks a 
bunch</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=324375914-23062004>Sathya</DIV></SPAN></FONT></BODY></HTML>