[Asterisk-Dev] HELP REQUIRED !!!!
Asterisk SSUET
asterisk_ssuet at yahoo.com
Tue Sep 7 01:48:18 MST 2004
Hi !!
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,
int main(void)
{
char line[80];
//Use line Buffering
setlinebuf(stdin);
setlinebuf(stdout);
while(1)
{
fgets(line,80,stdin);
if (strlen(line) <= 1) break;
}
//Wait for a digit input
char *temp;
fprintf(stderr,"Welcome");
printf("WAIT FOR DIGIT 1500 \n");
fgets(line,80,stdin);
fprintf(stderr,"values =%s \n",line);
temp = strstr (line,"=");
if (*temp == '=' && *(temp+1) != '0')
{
temp++;
*(temp +3) = '\0';
if (r_val == 42)
fprintf (stderr,"Test\n");
}
return 0;
}
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20040907/93991c90/attachment.htm
More information about the asterisk-dev
mailing list