<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=498205708-07092004><FONT color=#0000ff size=2>try using "get
data" instead</FONT></SPAN></DIV>
<DIV><SPAN class=498205708-07092004><FONT color=#0000ff size=2> and pls,
can you post your messages in text only</FONT></SPAN></DIV>
<DIV><SPAN class=498205708-07092004><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498205708-07092004><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
asterisk-dev-bounces@lists.digium.com
[mailto:asterisk-dev-bounces@lists.digium.com]<B>On Behalf Of </B>Asterisk
SSUET<BR><B>Sent:</B> 07 September 2004 09:48<BR><B>To:</B>
asterisk-dev@lists.digium.com<BR><B>Subject:</B> [Asterisk-Dev] HELP REQUIRED
!!!! <BR><BR></FONT></DIV>
<DIV>Hi !! <BR>I have problem with WAIT FOR DIGIT it is alwaysreturning me , "
200 result=0 " that means the no input is sent befor timetou , though i was
giving input form SIP client, I have altrenatevely used backgroud, it is
taking input and workong fine, but my requirement is WAIT FOR DIGIT , for the
input of long stream. please help me,<BR>int
main(void)
<BR>{
<BR> char
line[80];
<BR> //Use line
Buffering
<BR>
setlinebuf(stdin);
<BR>
setlinebuf(stdout);
<BR>
<BR>
while(1)
<BR>
{
<BR>
fgets(line,80,stdin);
<BR>
<BR> if (strlen(line)
<= 1)
break;
<BR>
}
<BR>
<BR>
//Wait for a digit
input
<BR>
<BR>
char
*temp;
<BR>
fprintf(stderr,"Welcome");
<BR>
printf("WAIT FOR DIGIT 1500
\n");
<BR>
fgets(line,80,stdin);
<BR>
fprintf(stderr,"values =%s
\n",line);
<BR>
temp = strstr
(line,"=");
<BR>
<BR>
if (*temp == '=' && *(temp+1) !=
'0')
<BR>
{
<BR>
temp++;
<BR>
<BR>
*(temp +3) =
'\0';
<BR>
<BR>
if (r_v al ==
42)
<BR>
fprintf (stderr,"Test\n");
<BR>
}
<BR> return
0;
<BR>}<BR>
<BR></DIV>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR>Win 1 of 4,000 free domain names from Yahoo! <A
href="http://us.rd.yahoo.com/evt=26640/*http://promotions.yahoo.com/goldrush">Enter
now</A>.</BLOCKQUOTE></BODY></HTML>