[asterisk-dev] Fastagi question

Jean-Michel Hiver jhiver at ykoz.net
Mon Sep 25 23:28:08 MST 2006


>
>     if ((cnt = recv(desc_archivoDatos, line , sizeof(line), 0)) > 1)
>         {
>          cnt = recv(desc_archivoDatos, line , sizeof(line) , 0 );
>          fprintf(stderr,line);
>         }

I think here you should strip any carriage return / newline characters 
from your line before checking wether it's empty or not?

Cheers,
Jean-Michel.


More information about the asterisk-dev mailing list