Hylafax Mailing List Archives

[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!



----- Original Message -----
From: "Holger Raschke" <holger.raschke@xxxxxxxxxxxxxx>
Cc: <hylafax-users@xxxxxxxxxxx>
Sent: Tuesday, September 23, 2003 11:49 AM
Subject: Re: [hylafax-users] Sendfax -d <number> file.tif doesn't work? /
Stays in queue!


> > Hi,
> >
> > when I type in the above command in my console...
> > It sends the faxjob into the queue without any errors.
> > But it never leaves the queue... the fax is not sent?
> > Why? There are not even dial attempts...
> > when I send via "c2faxsend" it works fine, so I guess my Fax is working
ok?
> >
> > Could anybody give me any hints?
> > I can also receive faxes, but faxrcvd is not executed?
> > Might that be the same error?
> >
> > System:
> > Debian woody 3.0
> > hylafax from Debian installed
> > AVM FritzCard PCI 2.0 (ISDN)
> > Capi4Hylafax installed
> > capi4k-utils installed
>
> hylafax version?
> capi4hylafax version and build?
> c2faxsend defined as "SendFaxCmd" in config?
> provide a receiving log and your actual faxrcvd-script.
>
> --
> Holger

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"'.
Sep 24 07:36:00.45: [  310]: Connection is droped with reason 0x3400 (No
additional information).
Sep 24 07:36:00.45: [  310]: SESSION END
---------------------- log snap ----------------------------------
---------------------- faxrcvd snip ------------------------------
#! /bin/sh
#
# /var/spool/hylafax/bin/faxrcvd
# Noel Burton-Krahn <noel@xxxxxxxxxxxxxxxx>
# Sept 4, 1999
#
#
# faxrcvd file devID commID error-msg
#
# modified faxrcvd from hylafax which calls faxrcvd-mail
#
if [ $# != 4 ]; then
    echo "Usage: $0 file devID commID error-msg"
    exit 1
fi
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-------------------------------------

 OK what i tried, is to exacly type the same Syntax as in the log:
sh -x /var/spool/fax/bin/faxrcvd "recvq/fax00011.tif" "faxCAPI" "00000015"
"" "+49 00 00000" "" "7248119"
 And the out put was:
-----------------------------snip
output ---------------------------------------
tux:/var/spool/hylafax/recvq# sh -x /var/spool/fax/bin/faxrcvd
"recvq/fax00011.tif" "faxCAPI" "00000015" "" "+49 00 00000" "" "7248119"
+ '[' 7 '!=' 4 ']'
+ echo 'Usage: /var/spool/fax/bin/faxrcvd file devID commID error-msg'
Usage: /var/spool/fax/bin/faxrcvd file devID commID error-msg
+ exit 1

 ----------------------------snap
output ----------------------------------------

Thx for trying to help me...
So long
KriS






____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services