[Asterisk-Dev] HELP REQUIRED!@!
Asterisk SSUET
asterisk_ssuet at yahoo.com
Tue Sep 7 00:31:32 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!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20040907/ac8d351c/attachment.htm
More information about the asterisk-dev
mailing list