• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Hylafax 4.2.3 faxt nicht

Falkenstein

Hacker
Hallo!
Ich hab SuSE 10.0 und Hylafax 4.2.3 installiert.
Ein Versuch mit
"sendfax -n -d 012121234567890 /etc/mtab"
scheitert mit folgender Fehlermail:

Your facsimile job to 012121234567890 could not be completed before the appointed deadline.

---- Unsent job status ----

Destination: 012121234567890
JobID: 1
GroupID: 1
Sender: root
Mailaddr: root@linux.site
Submitted From: localhost
Page Width: 209 (mm)
Page Length: 296 (mm)
Resolution: 196 (lpi)
Status: Kill time expired
Dialogs: 0 (exchanges with remote device)
Dials: 0 (consecutive failed calls to destination)
Calls: 0 (total phone calls placed)
Pages: 0 (pages transmitted)
TotPages: 0 (total pages to transmit)
Attempts: 0 (attempts to send current page)
Dirnum: 0 (directory of next page to send)

---- Documents submitted for transmission ----

The following documents were submitted for transmission and are
available on the server for reuse until they are automatically
purged when this job is removed. Documents may also be manually
removed using the faxrm command; consult faxrm(1) for information.

Filename Size Type
docq/doc1.ps.1 6150 Unknown document type


Was mach ich nun wieder verkehrt?
 

whois

Ultimate Guru
Hi

Wenn ich das richtig interpretiere wähl Hyla erst gar nicht.

btw. Kennst du den Link.

http://www.hylafax.org/man/sendfax.html
 
OP
Falkenstein

Falkenstein

Hacker
Ich hab es mit "sendfax -n -d...." und mit "kdeprintfax" mit gleichem Befehl versucht.
Dachte, das ist der Hylafax-client.
CAPI läuft, mit "capifax" kann ich faxen.
 
OP
Falkenstein

Falkenstein

Hacker
linux:~ # cat /var/log/sendfax.log

--
12/29 05:14:30 sendfax: interim release 1.1.33-Apr10
12/29 05:14:30 sendfax.c compiled at Sep 13 2005, 00:39:10
12/29 05:14:30 sending fax to /etc/mtab
12/29 05:14:30 exit_usage: no files to send: Success
12/29 05:14:30 ##### failed: command line error

--
12/29 05:14:53 sendfax: interim release 1.1.33-Apr10
12/29 05:14:53 sendfax.c compiled at Sep 13 2005, 00:39:10
12/29 05:14:53 sending fax to 012121234567890
12/29 05:14:53 checking /etc/mtab
12/29 05:14:53 makelock(ttyS1) called
12/29 05:14:53 do_makelock: lock='/var/lock/LCK..ttyS1'
12/29 05:14:53 lock made
12/29 05:14:53 tss: set speed to 38400 (017)
12/29 05:14:53 tio_set_flow_control( HARD )
12/29 05:14:53 yS1 fax_open_device succeeded, ttyS1 -> 5
12/29 05:14:53 yS1 reading specific data for port 'ttyS1'
12/29 05:14:53 yS1 reading /etc/mgetty+sendfax/sendfax.config...
12/29 05:14:53 yS1 conf lib: read: 'verbose y'
12/29 05:14:53 yS1 conf lib: read: 'debug 5'
12/29 05:14:53 yS1 conf lib: read: 'fax-devices ttyS1:ttyS2'

12/29 05:14:53 yS1 conf lib: read: 'fax-id 49 115 xxxxxxxx'

12/29 05:14:53 yS1 conf lib: read: 'max-tries 3'
12/29 05:14:53 yS1 conf lib: read: 'max-tries-continue y'
12/29 05:14:53 yS1 key: 'fax-devices', type=1, flags=4, data=(ignored)
12/29 05:14:53 yS1 key: 'modem-init', type=1, flags=0, data=(empty)
12/29 05:14:53 yS1 key: 'modem-handshake', type=1, flags=0, data=(empty)
12/29 05:14:53 yS1 key: 'modem-type', type=1, flags=1, data=auto
12/29 05:14:53 yS1 key: 'modem-quirks', type=0, flags=0, data=(empty)
12/29 05:14:53 yS1 key: 'fax-send-flow', type=4, flags=1, data=7
12/29 05:14:53 yS1 key: 'fax-rec-flow', type=4, flags=1, data=7
12/29 05:14:53 yS1 key: 'max-tries', type=0, flags=3, data=3
12/29 05:14:53 yS1 key: 'max-tries-continue', type=3, flags=3, data=TRUE
12/29 05:14:53 yS1 key: 'speed', type=0, flags=1, data=38400
12/29 05:14:53 yS1 key: 'switchbd', type=0, flags=1, data=0
12/29 05:14:53 yS1 key: 'open-delay', type=0, flags=0, data=(empty)
12/29 05:14:53 yS1 key: 'ignore-carrier', type=3, flags=1, data=TRUE
12/29 05:14:53 yS1 key: 'dial-prefix', type=1, flags=1, data=ATD
12/29 05:14:53 yS1 key: 'fax-id', type=1, flags=3, data=49 115 xxxxxxxx
12/29 05:14:53 yS1 key: 'poll-dir', type=1, flags=1, data=.
12/29 05:14:53 yS1 key: 'normal-res', type=3, flags=2, data=TRUE
12/29 05:14:53 yS1 key: 'fax-min-speed', type=0, flags=1, data=0
12/29 05:14:53 yS1 key: 'fax-max-speed', type=0, flags=1, data=14400
12/29 05:14:53 yS1 key: 'debug', type=0, flags=3, data=5
12/29 05:14:53 yS1 key: 'verbose', type=3, flags=3, data=TRUE
12/29 05:14:53 yS1 key: '', type=3, flags=1, data=FALSE
12/29 05:14:53 yS1 key: 'page-header', type=1, flags=0, data=(empty)
12/29 05:14:53 yS1 key: '', type=3, flags=1, data=FALSE
12/29 05:14:53 yS1 key: '', type=3, flags=1, data=FALSE
12/29 05:14:53 yS1 key: '', type=1, flags=1, data=
12/29 05:14:53 yS1 tss: set speed to 38400 (017)
12/29 05:14:53 yS1 mdm_send: 'ATV1Q0'
12/29 05:15:03 yS1 Warning: got alarm signal!
12/29 05:15:03 yS1 mdm_read_byte: read returned -1: Interrupted system call
12/29 05:15:03 yS1 mdm_get_line: cannot read byte, return: Interrupted system call -> ERROR
12/29 05:15:04 yS1 mdm_send: 'ATV1Q0'
12/29 05:15:06 ##### failed: got signal 2, pid=17896, dev=ttyS1, time=0s, acct=""

12/29 05:15:06 yS1 removing lock file

Fax-ID ist schonmal verkehrt.
Ausserdem ist das Ding alt.
Für 31.12. und 01.01. gibt es gar keine Einträge.
 

whois

Ultimate Guru
Sieh dir Bitte auch mal die Optionen an.

OPTIONS

-p Tells sendfax to try fax polling, that is, get any documents
queued in the remote fax machine for you (used for weather maps
and the like)

-x <debug level>
Use the given level of verbosity for logging - 0 means no log-
ging, 5 is really noisy.

-v Give some progress report on stdout.

-l <modem lines>
Use the given modem lines. Multiple lines can be separated by
":". Example: sendfax -l tty1a:tty2a

-m <initstring>
Send an additional init string. This string is sent right after
initializing the modem and setting it into class 2 mode. You can
use this to set the speaker value, some special registers, what-
soever. The modem must return "OK". If it returns "ERROR", send-
fax prints an error message and aborts. You do not have to
prepend the "AT" prefix, but it won’t do harm either.

-d <directory>
Specify the directory where polled fax files should go to.
Defaults to "." for the current directory. Unused if not
polling a fax.

-C <class>
Tells sendfax how to treat the modem. Possible values for
<class> are "auto" (default, try to find out which fax command
set the modem supports), "cls2" (use the class 2 fax command
set, even if the modem claims to support class 2.0) and "c2.0"
(use the class 2.0 fax command set). Obviously, "data" (which is
valid for "mgetty -C ...") is not of much use here.

-S Assume modem connection on stdin, do not try to lock or initial-
ize anything. To take over existing connection (for interworking
with vgetty et.al.) use with a dial string of "T1" (just a short
beep, no phone number at all would confuse many modems, a pulse
dialed number may confuse the telco switch) and "-m ATX1" (do
not wait for dial tone).

-n Tells sendfax to send the fax pages in ‘‘normal’’ (204x98 dpi)
mode. Default is ‘‘fine’’ mode (204x196 dpi).

-r If this option is given, sendfax will rename all the fax G3
files to ‘‘<filename>.done’’ after successfully sending this.
This is intended to be used from ‘‘faxrunq’’, to make sure that
a partially-sended fax isn’t retransmitted as a whole every
time.

If this option is set, sendfax will not (!) complain if not all
files named on the command line exist.

-D <dial prefix>
Override the default (set by sendfax.config or in policy.h) for
the ’ATxxx’ command to dial the remote number. This is rarely
used from the command line, but you might want to use it in com-
bination with faxrunqd’s policy routing option (see example in
faxrunqd.policy(5)).

-M <max speed>
Sets the maximum transmission (modem to modem) speed. This is
only needed in very rare cases, because normally the modems
negotiate the correct speed automatically. Example: "-M 7200".
 

whois

Ultimate Guru
Ich seh es.

Änder doch bitte mal die Fax Id versuch erneut zu Faxen und gib mir dir Message noch mal.

cu
 
OP
Falkenstein

Falkenstein

Hacker
Die ID hab ich mit faxxaddmodem.capi gesetzt.
Ich hab dieses Package installiert:
ftp://ftp.hylafax.org/binary/linux/suse/RPMS/hylafax-4.2.3-1suse100.i686.rpm
Es erzeugt /var/spool/hylafax.
Damit kann faxaddmodem und faxsetup nichts anfangen, ich hab einen Symlink /var/spool/fax erzeugt.

So, hier mal ein aktueller Output
linux:~ # sendfax -v -d 01212xxx /etc/mtab
match against (..., 369)
rule: offset 0 string = "%!" -- failed (comparison)
rule: offset 0 short = 0x4d4d -- failed (comparison)
rule: offset 0 short = 0x4949 -- failed (comparison)
rule: offset 0 short = 0x1da -- failed (comparison)
rule: offset 0 short = 0x1f1e -- failed (comparison)
rule: offset 0 short = 0x1f9d -- failed (comparison)
rule: offset 0 short = 0x506 -- failed (comparison)
rule: offset 0 short = 0x5343 -- failed (comparison)
rule: offset 0 short = 0xf702 -- failed (comparison)
rule: offset 0 string = "GIF" -- failed (comparison)
rule: offset 0 long = 0x59a66a95 -- failed (comparison)
rule: offset 0 string = "%PDF" -- failed (comparison)
rule: offset 0 string = "x T psc" -- failed (comparison)
rule: offset 0 string = "begin" -- failed (comparison)
rule: offset 0 string = "xbtoa" -- failed (comparison)
rule: offset 0 string = "P1" -- failed (comparison)
rule: offset 0 string = "P2" -- failed (comparison)
rule: offset 0 string = "P3" -- failed (comparison)
rule: offset 0 string = "P4" -- failed (comparison)
rule: offset 0 string = "P5" -- failed (comparison)
rule: offset 0 string = "P6" -- failed (comparison)
rule: offset 0 string = "WNGZWZSS" -- failed (comparison)
rule: offset 0 string = "#Inventor V" -- failed (comparison)
rule: offset 0 string = "\x89PNG" -- failed (comparison)
rule: offset 0 short = 0xffd8 -- failed (comparison)
rule: offset 0 short = 0xd8ff -- failed (comparison)
rule: offset 0 string = "#FIG" -- failed (comparison)
rule: offset 0 ascii = -- success (result postscript, rule "%F/textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s %s >%o <%i")
CONVERT "/usr/sbin/textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s default >/tmp//sndfaxOkEbNr </etc/mtab"
Apply DisplayNumber rules to "01212xxx"
--> return result "01212xxx"
COVER SHEET "/usr/bin/faxcover -f 'root' -n '01212xxx' -s 'default' -p '1'"
request id is 3 (group id 3) for host localhost (1 file)
 
OP
Falkenstein

Falkenstein

Hacker
Wie kann man denn noch überprüfen, was Hylafax oder der Hylafax-client macht?
In /var/log/messages steht nichts darüber, /var/spool/fax/log ist leer.
faxstat sagt:

linux:~ # faxstat
HylaFAX scheduler on linux.site: Running
 

whois

Ultimate Guru
Hi

Sieh dir mal den Eintrag an und sag mir wie der steht.

In der Datei /etc/default/hylafax muss eventuell ein Parameter geändert werden:

USE_FAXGETTY= ?
 
OP
Falkenstein

Falkenstein

Hacker
Ja, gerade upgedatet.
In 9.3 ging Hylafax ja wenigstens, wenn man den Fritz-Treiber neu installiert hat.
Nur was ist hier bei 4.2.3 in SuSE 10 los?

linux:/var/spool/hylafax/etc # faxstat -v
Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.
220 linux.site server (HylaFAX (tm) Version 4.2.3) ready.
-> USER root
230 User root logged in.
-> PORT 127,0,0,1,4,21
200 PORT command successful.
-> LIST status
150 Opening new data connection for "status".
HylaFAX scheduler on linux.site: Running
226 Transfer complete.


linux:~ # sendfax -n -v -d 01212xxx /etc/mtab
match against (..., 499)
rule: offset 0 string = "%!" -- failed (comparison)
rule: offset 0 short = 0x4d4d -- failed (comparison)
rule: offset 0 short = 0x4949 -- failed (comparison)
rule: offset 0 short = 0x1da -- failed (comparison)
rule: offset 0 short = 0x1f1e -- failed (comparison)
rule: offset 0 short = 0x1f9d -- failed (comparison)
rule: offset 0 short = 0x506 -- failed (comparison)
rule: offset 0 short = 0x5343 -- failed (comparison)
rule: offset 0 short = 0xf702 -- failed (comparison)
rule: offset 0 string = "GIF" -- failed (comparison)
rule: offset 0 long = 0x59a66a95 -- failed (comparison)
rule: offset 0 string = "%PDF" -- failed (comparison)
rule: offset 0 string = "x T psc" -- failed (comparison)
rule: offset 0 string = "begin" -- failed (comparison)
rule: offset 0 string = "xbtoa" -- failed (comparison)
rule: offset 0 string = "P1" -- failed (comparison)
rule: offset 0 string = "P2" -- failed (comparison)
rule: offset 0 string = "P3" -- failed (comparison)
rule: offset 0 string = "P4" -- failed (comparison)
rule: offset 0 string = "P5" -- failed (comparison)
rule: offset 0 string = "P6" -- failed (comparison)
rule: offset 0 string = "WNGZWZSS" -- failed (comparison)
rule: offset 0 string = "#Inventor V" -- failed (comparison)
rule: offset 0 string = "\x89PNG" -- failed (comparison)
rule: offset 0 short = 0xffd8 -- failed (comparison)
rule: offset 0 short = 0xd8ff -- failed (comparison)
rule: offset 0 string = "#FIG" -- failed (comparison)
rule: offset 0 ascii = -- success (result postscript, rule "%F/textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s %s >%o <%i")
CONVERT "/usr/sbin/textfmt -B -f Courier-Bold -Ml=0.4in -p 11 -s default >/tmp//sndfaxABEnaB </etc/mtab"
Apply DisplayNumber rules to "01212xxx"
--> return result "01212xxx"
request id is 3 (group id 3) for host localhost (1 file)
 
OP
Falkenstein

Falkenstein

Hacker
Nein, die geht glatt durch im Stil von:
sendfax -n -d 012121234567890 /etc/mtab
Hylafax schreibt aber auch keine Logfiles mehr.
Probiere grade die aktuelle 4.2.4 selbstkompiliert.
Die Hylafax-Mailinglist ist aber auch nicht ergiebig zu dem Problem.
Kann das dran liegen, dass mir SuSE mal 4.2.1 als rpm draufgepackt hat und ich jetzt mit ner selbstkompilierten Version dazwischen komme?
Hoffe, die Pfade alle richtig gesetzt zu haben.

Das Ding scheint auch gar nicht zu wählen.
linux:~ # faxstat -v -s
Trying localhost (127.0.0.1) at port 4559...
Connected to localhost.
220 linux.site server (HylaFAX (tm) Version 4.2.4) ready.
-> USER root
230 User root logged in.
-> PORT 127,0,0,1,4,42
200 PORT command successful.
-> LIST status
150 Opening new data connection for "status".
HylaFAX scheduler on linux.site: Running
226 Transfer complete.
-> JOBFMT
200 %-4j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s
-> PORT 127,0,0,1,4,43
200 PORT command successful.
-> LIST sendq
150 Opening new data connection for "sendq".

JID Pri S Owner Number Pages Dials TTS Status
8 127 W root 123456 0:0 0:12
226 Transfer complete.

Dials 0:12
 

whois

Ultimate Guru
tuxx schrieb:
Kann das dran liegen, dass mir SuSE mal 4.2.1 als rpm draufgepackt hat und ich jetzt mit ner selbstkompilierten Version dazwischen komme?

Ja es ist durchaus möglich das sich beide Versionen ins Gehege kommen und sich Blockieren.

Ich versuch mal etwas darüber in Erfahrung zu bekommen und Poste es rein.
 

whois

Ultimate Guru
Bei mir läuft im Geschäft immer noch Suse 9.3 mit einer Fritz!Card.

Ich habe zuhause zwar Suse 10 aber noch kein Hyla ich komm aus Zeitgründen nicht dazu.
 
OP
Falkenstein

Falkenstein

Hacker
Da soll einer drauf kommen!
capi4hylafax 4.2.1-11 aus SuSE 10.0 ist buggy.
Nach einem Downgrade auf 4.2.1-4.2 gehts.
Am besten in smart gleich auf "Locked" setzen.
 
Oben