<!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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>asterisk*CLI>
show application read<BR>asterisk*CLI><BR> -= Info about application
'Read' =-</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>[Synopsis]:<BR>Read
a variable</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=324375914-23062004>[Description]:<BR>
Read(variable[|filename]): Reads a '#' terminated string of digits
from<BR>the user, optionally playing a given filename first. 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>I need to
collect a variable length digit string terminated by # and then pass those
digits to an agi script. I 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=324375914-23062004>exten =>
s,1,BackGround(please-enter-the-fourdigit-pin)<BR>exten =>
s,2,DigitTimeout,5<BR>exten => s,3,ResponseTimeout,10<BR>exten => _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> </DIV>
<DIV><FONT face=Arial><FONT size=2>exten =>
s,1,BackGround(please-enter-the<SPAN
class=324375914-23062004>-pin</SPAN>)<BR>exten =>
s,2,Background(followed-by-pound)<BR>exten => s,3,DigitTimeout,5<BR>exten
=> s,4,ResponseTimeout,10<BR>exten => s,5,Read(${EXTEN})<BR><SPAN
class=324375914-23062004>exten => ???????/</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=324375914-23062004></SPAN></FONT></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=324375914-23062004></SPAN></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=324375914-23062004>Sathya</DIV></SPAN></FONT></BODY></HTML>