version 1.12, 2006/03/17 14:43:06 |
version 1.13, 2006/10/18 21:18:59 |
|
|
{ |
{ |
char *cp = PN; |
char *cp = PN; |
char *phnum, string[256]; |
char *phnum, string[256]; |
FILE *fd; |
FILE *fp; |
volatile int tried = 0; |
volatile int tried = 0; |
|
|
if (!DU) { /* regular connect message */ |
if (!DU) { /* regular connect message */ |
|
|
tried++; |
tried++; |
} |
} |
} else { |
} else { |
if ((fd = fopen(PH, "r")) == NOFILE) { |
if ((fp = fopen(PH, "r")) == NOFILE) { |
printf("%s: ", PH); |
printf("%s: ", PH); |
return ("can't open phone number file"); |
return ("can't open phone number file"); |
} |
} |
while (fgets(string, sizeof(string), fd) != NOSTR) { |
while (fgets(string, sizeof(string), fp) != NOSTR) { |
cp = &string[strcspn(string, " \t\n")]; |
cp = &string[strcspn(string, " \t\n")]; |
if (*cp != '\0') |
if (*cp != '\0') |
*cp++ = '\0'; |
*cp++ = '\0'; |
|
|
logent(value(HOST), phnum, acu->acu_name, "call failed"); |
logent(value(HOST), phnum, acu->acu_name, "call failed"); |
tried++; |
tried++; |
} |
} |
fclose(fd); |
fclose(fp); |
} |
} |
if (conflag) { |
if (conflag) { |
if (CM != NOSTR) |
if (CM != NOSTR) |