[Asterisk-Dev] HELP REQUIRED !!!!

Senad Jordanovic senad at boltblue.com
Tue Sep 7 01:59:23 MST 2004


try using "get data" instead
 and pls, can you post your messages in text only


  -----Original Message-----
  From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com]On Behalf Of Asterisk SSUET
  Sent: 07 September 2004 09:48
  To: asterisk-dev at lists.digium.com
  Subject: [Asterisk-Dev] HELP REQUIRED !!!!


  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_v al == 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/0d2a3654/attachment.htm


More information about the asterisk-dev mailing list