try using "get data" instead
 and pls, can you post your messages in text only
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Asterisk SSUET
Sent: 07 September 2004 09:48
To: [EMAIL PROTECTED]
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.
_______________________________________________
Asterisk-Dev mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to