HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Sendfax -d <number> file.tif doesn't work? / Stays in queue!
Hi,
Thx for helping:
hylafax version: 4.1.1
This is rather old. Upgrade to the latest version.
The old version is also the reason for the problems with faxrcvd because
of the amount of parameters.
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
is c2faxrecv running? it replaces faxgetty and tells hylafax about the
modems.
what does your config.faxCAPI look like?
------------------------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"'.
c2faxrecv passes 7 parameters to faxrcvd but ...
# 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
if [ $# -lt 4 ]; then
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
you don't need the faxrcvd-mail skripts with newer versions of hylafax.
This has become an implemented feature.
"$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 ']'
faxrcvd exits here. reason: see comments above.
--
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*