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] Page length problem [GishPuppy]



I've patched the tiff2fax script in order to force it to do a resizing on every fax i send, and it seems to work, no more page length error. But now, there's another error (with the same receiver). Here's the full log :
mai 23 16:40:22.25: [26690]: SESSION BEGIN 000001346 335**********
mai 23 16:40:22.25: [26690]: HylaFAX (tm) Version 4.3.1
mai 23 16:40:22.25: [26690]: SEND FAX: JOB 541 DEST ********** COMMID 000001346 DEVICE '/dev/ttyS1' FROM 'root <******>' USER root
mai 23 16:40:22.25: [26690]: <-- [12:AT+FCLASS=1\r]
mai 23 16:40:22.39: [26690]: --> [2:OK]
mai 23 16:40:22.39: [26690]: DIAL **********
mai 23 16:40:22.39: [26690]: <-- [15:ATDT**********\r]
mai 23 16:40:42.71: [26690]: --> [7:CONNECT]
mai 23 16:40:43.94: [26690]: --> [2:OK]
mai 23 16:40:43.94: [26690]: REMOTE NSF "00 00 56 55 55 00 88 B0 80 5F 00"
mai 23 16:40:43.94: [26690]: NSF remote fax equipment: Brother
mai 23 16:40:43.94: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:40:43.96: [26690]: --> [7:CONNECT]
mai 23 16:40:44.63: [26690]: --> [2:OK]
mai 23 16:40:44.63: [26690]: REMOTE CSI "**********"
mai 23 16:40:44.63: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:40:44.65: [26690]: --> [7:CONNECT]
mai 23 16:40:44.95: [26690]: --> [2:OK]
mai 23 16:40:44.95: [26690]: REMOTE best rate 9600 bit/s
mai 23 16:40:44.95: [26690]: REMOTE max A4 page width (215 mm)
mai 23 16:40:44.95: [26690]: REMOTE max A4 page length (297 mm)
mai 23 16:40:44.95: [26690]: REMOTE best vres 15.4 line/mm
mai 23 16:40:44.95: [26690]: REMOTE format support: MH
mai 23 16:40:44.95: [26690]: REMOTE supports T.30 Annex A, 256-byte ECM
mai 23 16:40:44.95: [26690]: REMOTE best 20 ms/scanline
mai 23 16:40:44.95: [26690]: USE 9600 bit/s
mai 23 16:40:44.96: [26690]: USE error correction mode
mai 23 16:40:44.96: [26690]: SEND file "docq/doc536.tif;c0"
mai 23 16:40:44.96: [26690]: USE A4 page width (215 mm)
mai 23 16:40:44.96: [26690]: USE A4 page length (297 mm)
mai 23 16:40:44.96: [26690]: USE 3.85 line/mm
mai 23 16:40:44.96: [26690]: USE 1-D MH
mai 23 16:40:44.96: [26690]: USE 0 ms/scanline
mai 23 16:40:44.96: [26690]: SEND training at v.29 9600 bit/s
mai 23 16:40:44.96: [26690]: <-- [9:AT+FRS=7\r]
mai 23 16:40:45.72: [26690]: --> [2:OK]
mai 23 16:40:45.72: [26690]: <-- [9:AT+FTH=3\r]
mai 23 16:40:45.91: [26690]: --> [7:CONNECT]
mai 23 16:40:45.91: [26690]: <-- data [23]
mai 23 16:40:45.91: [26690]: <-- data [2]
mai 23 16:40:45.93: [26690]: --> [7:CONNECT]
mai 23 16:40:45.93: [26690]: <-- data [7]
mai 23 16:40:45.93: [26690]: <-- data [2]
mai 23 16:40:47.91: [26690]: --> [2:OK]
mai 23 16:40:47.91: [26690]: <-- [9:AT+FTS=7\r]
mai 23 16:40:48.00: [26690]: --> [2:OK]
mai 23 16:40:48.00: [26690]: <-- [10:AT+FTM=96\r]
mai 23 16:40:48.31: [26690]: --> [7:CONNECT]
mai 23 16:40:48.31: [26690]: <-- data [1024]
mai 23 16:40:48.71: [26690]: <-- data [776]
mai 23 16:40:49.10: [26690]: <-- data [2]
mai 23 16:40:49.85: [26690]: --> [2:OK]
mai 23 16:40:49.85: [26690]: <-- [9:AT+FRS=1\r]
mai 23 16:40:49.87: [26690]: --> [2:OK]
mai 23 16:40:49.87: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:40:50.63: [26690]: --> [7:CONNECT]
mai 23 16:41:00.63: [26690]: <-- data [1]
mai 23 16:41:00.63: [26690]: --> [2:OK]
mai 23 16:41:00.63: [26690]: DELAY 1500 ms
mai 23 16:41:02.13: [26690]: SEND training at v.29 7200 bit/s
mai 23 16:41:02.13: [26690]: <-- [9:AT+FRS=7\r]
mai 23 16:41:02.24: [26690]: --> [2:OK]
mai 23 16:41:02.24: [26690]: <-- [9:AT+FTH=3\r]
mai 23 16:41:02.27: [26690]: --> [7:CONNECT]
mai 23 16:41:02.27: [26690]: <-- data [23]
mai 23 16:41:02.27: [26690]: <-- data [2]
mai 23 16:41:02.29: [26690]: --> [7:CONNECT]
mai 23 16:41:02.29: [26690]: <-- data [7]
mai 23 16:41:02.29: [26690]: <-- data [2]
mai 23 16:41:04.27: [26690]: --> [2:OK]
mai 23 16:41:04.27: [26690]: <-- [9:AT+FTS=7\r]
mai 23 16:41:04.35: [26690]: --> [2:OK]
mai 23 16:41:04.35: [26690]: <-- [10:AT+FTM=72\r]
mai 23 16:41:04.67: [26690]: --> [7:CONNECT]
mai 23 16:41:04.67: [26690]: <-- data [1024]
mai 23 16:41:05.06: [26690]: <-- data [326]
mai 23 16:41:05.06: [26690]: <-- data [2]
mai 23 16:41:06.21: [26690]: --> [2:OK]
mai 23 16:41:06.21: [26690]: <-- [9:AT+FRS=1\r]
mai 23 16:41:06.23: [26690]: --> [2:OK]
mai 23 16:41:06.23: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:41:07.45: [26690]: --> [7:CONNECT]
mai 23 16:41:07.45: [26690]: --> [5:ERROR]
mai 23 16:41:07.45: [26690]: MODEM Command error
mai 23 16:41:07.45: [26690]: FCS error
mai 23 16:41:07.45: [26690]: <-- [9:AT+FRS=7\r]
mai 23 16:41:07.55: [26690]: --> [2:OK]
mai 23 16:41:07.55: [26690]: <-- [9:AT+FTH=3\r]
mai 23 16:41:07.75: [26690]: --> [7:CONNECT]
mai 23 16:41:07.75: [26690]: <-- data [3]
mai 23 16:41:07.75: [26690]: <-- data [2]
mai 23 16:41:08.93: [26690]: --> [2:OK]
mai 23 16:41:08.93: [26690]: SEND send CRP (command repeat)
mai 23 16:41:08.93: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:41:10.71: [26690]: --> [7:CONNECT]
mai 23 16:41:11.95: [26690]: --> [2:OK]
mai 23 16:41:11.95: [26690]: REMOTE NSF "00 00 56 55 55 00 88 B0 80 5F 00"
mai 23 16:41:11.95: [26690]: NSF remote fax equipment: Brother
mai 23 16:41:11.95: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:41:11.97: [26690]: --> [7:CONNECT]
mai 23 16:41:12.65: [26690]: --> [2:OK]
mai 23 16:41:12.65: [26690]: REMOTE CSI "**********"
mai 23 16:41:12.65: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:41:12.66: [26690]: --> [7:CONNECT]
mai 23 16:41:12.99: [26690]: --> [2:OK]
mai 23 16:41:12.99: [26690]: SEND training at v.29 7200 bit/s
mai 23 16:41:12.99: [26690]: <-- [9:AT+FRS=7\r]
mai 23 16:41:13.09: [26690]: --> [2:OK]
mai 23 16:41:13.09: [26690]: <-- [9:AT+FTH=3\r]
mai 23 16:41:13.29: [26690]: --> [7:CONNECT]
mai 23 16:41:13.29: [26690]: <-- data [23]
mai 23 16:41:13.29: [26690]: <-- data [2]
mai 23 16:41:13.31: [26690]: --> [7:CONNECT]
mai 23 16:41:13.31: [26690]: <-- data [7]
mai 23 16:41:13.31: [26690]: <-- data [2]
mai 23 16:41:15.29: [26690]: --> [2:OK]
mai 23 16:41:15.29: [26690]: <-- [9:AT+FTS=7\r]
mai 23 16:41:15.37: [26690]: --> [2:OK]
mai 23 16:41:15.37: [26690]: <-- [10:AT+FTM=72\r]
mai 23 16:41:15.69: [26690]: --> [7:CONNECT]
mai 23 16:41:15.69: [26690]: <-- data [1024]
mai 23 16:41:16.08: [26690]: <-- data [326]
mai 23 16:41:16.08: [26690]: <-- data [2]
mai 23 16:41:17.23: [26690]: --> [2:OK]
mai 23 16:41:17.23: [26690]: <-- [9:AT+FRS=1\r]
mai 23 16:41:17.25: [26690]: --> [2:OK]
mai 23 16:41:17.25: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:41:18.65: [26690]: --> [7:CONNECT]
mai 23 16:41:18.66: [26690]: --> [5:ERROR]
mai 23 16:41:18.66: [26690]: MODEM Command error
mai 23 16:41:18.66: [26690]: FCS error
mai 23 16:41:18.66: [26690]: <-- [9:AT+FRS=7\r]
mai 23 16:41:18.76: [26690]: --> [2:OK]
mai 23 16:41:18.76: [26690]: <-- [9:AT+FTH=3\r]
mai 23 16:41:18.95: [26690]: --> [7:CONNECT]
mai 23 16:41:18.95: [26690]: <-- data [3]
mai 23 16:41:18.95: [26690]: <-- data [2]
mai 23 16:41:20.13: [26690]: --> [2:OK]
mai 23 16:41:20.13: [26690]: SEND send CRP (command repeat)
mai 23 16:41:20.13: [26690]: <-- [9:AT+FRH=3\r]
mai 23 16:41:21.91: [26690]: --> [7:CONNECT]
mai 23 16:41:22.92: [26690]: --> [2:OK]
mai 23 16:41:22.92: [26690]: TRAINING failed
mai 23 16:41:22.92: [26690]: SEND: RSRPEC error/got DCN; Giving up after 3 attempts to send same page "docq/doc536.tif;c0", dirnum 0
mai 23 16:41:22.92: [26690]: <-- [9:AT+FTH=3\r]
mai 23 16:41:23.11: [26690]: --> [7:CONNECT]
mai 23 16:41:23.11: [26690]: <-- data [3]
mai 23 16:41:23.11: [26690]: <-- data [2]
mai 23 16:41:24.29: [26690]: --> [2:OK]
mai 23 16:41:24.29: [26690]: <-- [5:ATH0\r]
mai 23 16:41:24.52: [26690]: --> [2:OK]
mai 23 16:41:24.52: [26690]: SESSION END

I'm don't know well faxing protocol, i can't figure what this error means. Any clue someone ?

Paparsifal a écrit :
I've dig a bit more on the problem. As i have understand how hylafax runs, there's a script called tiff2fax which is in charge of verifying and resizing the tiff image if it doesn't fit. It calls another utility called tiffcheck to check the tiff. It seems that tiffcheck is considering that if the page length is less than 30 mm bigger than the requested page length, it says that tiff doesn't need to be resized.
Here's the tiffcheck.c++ line (275)
        if (pageLength != (uint32) -1 && len > pageLength+30) {
Maybe this must be corrected to not accept page length difference
        if (pageLength != (uint32) -1 && len > pageLength+0) {
Or maybe i could use the etc/FaxModify file to force resizing of all my faxes to the correct page length...

Others suggestions ?

Paparsifal a écrit :
I've installed Hylafax 4.3.1 and can send faxes successfully using cypheus from windows for most of my customers. However, Hylafax fails to send to some customers, with the error message:

Client does not support document page length, max remote page length 297 mm, image length 1182 rows (306.36 mm)

The cypheus printer driver is set to use an A4 paper size.

The Hylafax docs say that this is a non-fatal error and that it will attempt to reimage the page to fit the remote machine's capabilities, however this doesn't happen, with all attempts to resend the fax resulting in the same error, eventually giving up.

Has anybody else experienced this problem and/or can suggest a solution?
Thanx for help.
--
Paparsifal

Gishpuppy | To reply to this email, click here: http://www.gishpuppy.com/cgi-bin/edit.py?email=hylafax.p3z@xxxxxxxxxxxxx

-- 
Jean-Guillaume VIEUX
Declic Informatique



Project hosted by iFAX Solutions