![]() |
Hi,
Thx for helping:
hylafax version: 4.1.1
capi4hylafax version: 01.02.02 build: ?? ---------------------- config snip ----------------------- #ContCoverPage: "etc/cover.templ" #DestControls: "etc/destctrls" #DialStringRules: "etc/dialrules" #QualifyCID: "etc/cid" #QualifyTSI: "etc/tsi" #ServerTracing: 0x08501 InternationalPrefix: 00 SendFaxCmd: /usr/local/bin/c2faxsend
------------------------config snap --------------------- ------------------------ log ----------------------------- Sep 24 07:35:39.10: [ 310]: SESSION BEGIN 00000015 +49.00.00000 Sep 24 07:35:39.10: [ 310]: Incoming analog call on controller 1 to 7248119. Sep 24 07:35:48.10: [ 310]: Connection established. Sep 24 07:35:48.10: [ 310]: StationID = +49 00 00000 Sep 24 07:35:48.10: [ 310]: BaudRate = 14400 Sep 24 07:35:48.10: [ 310]: Flags = HighRes, MMR_compr Sep 24 07:35:48.13: [ 310]: Write fax in path /var/spool/hylafax to file recvq/fax00011.tif. Sep 24 07:35:57.67: [ 310]: Page 1 was received. - Last Page! Sep 24 07:36:00.31: [ 310]: Fax received and calling '/var/spool/fax/bin/faxrcvd "recvq/fax00011.tif" "faxCAPI" "00000015" "" "+49 00 00000" "" "7248119"'.
# modified faxrcvd from hylafax which calls faxrcvd-mail # if [ $# != 4 ]; then echo "Usage: $0 file devID commID error-msg" exit 1 fi
...faxrcvd only expects 4! It's because of the old version. A quick solution would be replacing the "if ..." line with
FILE="$1" DEVICE="$2" COMMID="$3" MSG="$4" TRUNCFILE=`echo $FILE | sed -e 's/\.tif//'`
test -f etc/setup.cache || { SPOOL=`pwd` cat<<EOF
FATAL ERROR: $SPOOL/etc/setup.cache is missing!
The file $SPOOL/etc/setup.cache is not present. This probably means the machine has not been setup using the faxsetup(1M) command. Read the documentation on setting up HylaFAX before you startup a server system.
EOF exit 1 } . etc/setup.cache
/usr/bin/tiff2ps -a -O $SPOOL/$TRUNCFILE.ps $SPOOL/$FILE /usr/bin/ps2pdf13 $SPOOL/$TRUNCFILE.ps $SPOOL/$TRUNCFILE.pdf
TOADDR=root PATH="$SPOOL/sbin:$SPOOL/bin:$PATH"
# # If you're using faxcron and would like to have the recvq file removed if # mail delivery was successful, then uncomment this if clause and comment # the line(s) following. # #if faxrcvd-mail "$FILE" "$DEVICE" "$COMMID" "$MSG" "$TOADDR" fax "$TRUNCFILE.p #/usr/sbin/sendmail $TOADDR; then # rm -f $SPOOL/$TRUNCFILE* #fi
if faxrcvd-mail "$FILE" "$DEVICE" "$COMMID" "$MSG" "$TOADDR" fax
"$TRUNCFILE.pd /usr/sbin/sendmail $TOADDR; then rm -f $SPOOL/$TRUNCFILE.pdf fi ---------------------------- faxrcvd snap-------------------------------------
tux:/var/spool/hylafax/recvq# sh -x /var/spool/fax/bin/faxrcvd "recvq/fax00011.tif" "faxCAPI" "00000015" "" "+49 00 00000" "" "7248119" + '[' 7 '!=' 4 ']'
-- Holger
____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxxxxx*