HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: faxcron report incomplete




The relevant code in faxcron is:

#
# Note destinations whose jobs are currently being rejected.
#
find info cinfo -type f -newer $LAST -print 2>/dev/null >$JUNK
if [ -s $JUNK ]; then
        echo "Destinations being rejected (added since $LASTRUN):"
        $GREP "^rejectNotice:" `$CAT $JUNK` | $AWK -F: '
                { reason = $3;
                  for (i = 4; i <= NF; i++)
                        reason = reason ":" $i;
                  sub("^[ ]*", "", reason);
                  if (reason != "") {
                      sub(".*/", "", $1);
                      printf "Rejecting jobs to +%s because \"%s\".\n", \
                            $1, reason;
                  }
                }
'
fi

Now, in your info directory, I see things like:

supportsHighRes:yes
supports2DEncoding:yes
supportsPostScript:no
calledBefore:yes
maxPageWidth:1728
maxPageLength:-1
maxSignallingRate:"9600"
minScanlineTime:"10ms/5ms"
remoteCSI:"2063437004"
sendFailures:0
dialFailures:0
&pagingProtocol:"ixo"

(is that last line correct by the way? the ampersand??)

But I can't find any containing a reject notice.

[root@Beaker info]# pwd
/var/spool/fax/info
[root@Beaker info]# egrep -i reject *
[root@Beaker info]# pwd
/var/spool/fax/info
[root@Beaker info]# ls | wc
    103     104    2065
[root@Beaker info]# egrep -i reject *
[root@Beaker info]# 

I guess the question is, what is the expected behaviour when a fax is rejected 
by destcontrols? It doesn't seem to write anything in info/ that's for sure. 
So what is the intent of this code in faxcron?

-Darren





Project hosted by iFAX Solutions