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,"=");                                     
                                                                             &nbs p;
                if (*temp == '=' && *(temp+1) != '0')                         
                {                                                             
                        temp++;                                               
                                                                              
                        *(temp +3) = '\0';                                     
                                                                                                       
                      &nbs p; 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

_______________________________________________
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