If I run pppd on the modem line before running ./try, when I receive the
ring, all remain normal and the modem led are off as usual.
It seems to be a kernel [2.x.x] problem because the only thing that cause
that is the open system call.
#include <stdio.h>
#include <fcntl.h>
void main(void) {
int fd;
printf("I am attempting to open modem device /dev/modem\n");
if((fd = open("/dev/modem",O_RDONLY))<0) {
printf("Modem not opened\n");
exit(-1);
}
printf("Modem opened successfully\n");
getchar();
}
Anybody can duplicate this problem on his hardware?
Thanks in advance!
Andrea Arcangeli