Changed outbound scan

This commit is contained in:
Michiel Broek 2002-02-23 21:54:10 +00:00
parent 62072daeac
commit 14ad175e93

View File

@ -310,14 +310,6 @@ int outstat()
*/ */
if (internet) if (internet)
tmp->flavors |= F_CALL; tmp->flavors |= F_CALL;
/*
* Always set semafore do_inet
*/
if (!s_do_inet) {
CreateSema((char *)"do_inet");
s_do_inet = TRUE;
tasklog('c', "Created semafore do_inet");
}
} }
if ((tmp->flavors) & F_IMM ) { if ((tmp->flavors) & F_IMM ) {
flstr[0]='I'; flstr[0]='I';
@ -438,6 +430,15 @@ int outstat()
nxt_min = 0; nxt_min = 0;
} }
/*
* Always set semafore do_inet if internet is needed.
*/
if (!s_do_inet && inet_calls) {
CreateSema((char *)"do_inet");
s_do_inet = TRUE;
tasklog('c', "Created semafore do_inet");
}
tasklog('o', "Call inet=%d, isdn=%d, pots=%d", inet_calls, isdn_calls, pots_calls); tasklog('o', "Call inet=%d, isdn=%d, pots=%d", inet_calls, isdn_calls, pots_calls);
tasklog('+', "Next event at %02d:%02d UTC", nxt_hour, nxt_min); tasklog('+', "Next event at %02d:%02d UTC", nxt_hour, nxt_min);
return 0; return 0;