HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Use2D on Solaris with Hylafax 4.2.1



Title: Use2D on Solaris with Hylafax 4.2.1

All,

I'm trying to debug an issue where faxes aren't being transmitted correctly from Hylafax 4.2.1.  I've narrowed it down to the use of "2-D MMR" in the outgoing faxes.  If a fax is sent with 2-D MMR, then the receiving machine will fail to receive it correctly.  Usually the problem is a "Unspecified Transmit Phase C error (code 40)" error returned to Hylafax.

The problem I have is that using "sendfax -1" to force 1-D MH transmission works, but I can't make this the default.  Attempting to set the "Use2D: No" setting in the /var/spool/hylafax/etc/config still results in 2-D MMR being sent.

Examples of logs (fax numbers obscured):

Using "sendfax -1" :

Sep 21 15:54:24.95: [22031]: SESSION BEGIN 000000001 6404XXXXXXX
Sep 21 15:54:24.95: [22031]: HylaFAX (tm) Version 4.2.1
Sep 21 15:54:24.95: [22031]: SEND FAX: JOB 10 DEST 04XXXXXXX COMMID 000000001 DEVICE '/dev/cua/dgrasa01'
Sep 21 15:54:24.96: [22031]: <-- [10:AT+FTBC=0\r]
Sep 21 15:54:25.23: [22031]: --> [2:OK]
Sep 21 15:54:25.23: [22031]: <-- [10:AT+FBOR=0\r]
Sep 21 15:54:25.51: [22031]: --> [2:OK]
Sep 21 15:54:25.51: [22031]: <-- [13:AT+FPHCTO=30\r]
Sep 21 15:54:25.79: [22031]: --> [2:OK]
Sep 21 15:54:25.79: [22031]: <-- [24:AT+FDCC=1,5,2,2,3,2,0,0\r]
Sep 21 15:54:26.07: [22031]: --> [2:OK]
Sep 21 15:54:26.07: [22031]: DIAL 104XXXXXXX
Sep 21 15:54:26.08: [22031]: <-- [15:ATDT104XXXXXXX\r]
Sep 21 15:54:41.18: [22031]: --> [5:+FCON]
Sep 21 15:54:44.50: [22031]: --> [28:+FCSI:"        64 4 XXXXXXX"]
Sep 21 15:54:44.50: [22031]: REMOTE CSI "64 4 XXXXXXX"
Sep 21 15:54:44.50: [22031]: --> [22:+FDIS: 1,5,0,2,3,1,0,2]
Sep 21 15:54:44.50: [22031]: --> [2:OK]
Sep 21 15:54:44.50: [22031]: REMOTE best rate 14400 bit/s
Sep 21 15:54:44.50: [22031]: REMOTE max A4 page width (215 mm)
Sep 21 15:54:44.50: [22031]: REMOTE max unlimited page length
Sep 21 15:54:44.50: [22031]: REMOTE best vres 7.7 line/mm
Sep 21 15:54:44.50: [22031]: REMOTE best format 2-D MMR
Sep 21 15:54:44.50: [22031]: REMOTE supports T.30 Annex A, 64-byte ECM
Sep 21 15:54:44.50: [22031]: REMOTE best 10 ms, 5 ms/scanline
Sep 21 15:54:44.50: [22031]: USE 14400 bit/s
Sep 21 15:54:44.51: [22031]: USE error correction mode
Sep 21 15:54:44.51: [22031]: USE 0 ms/scanline
Sep 21 15:54:44.51: [22031]: SEND file "docq/doc10.ps;00"
Sep 21 15:54:44.51: [22031]: USE A4 page width (215 mm)
Sep 21 15:54:44.51: [22031]: USE unlimited page length
Sep 21 15:54:44.51: [22031]: USE 3.85 line/mm
Sep 21 15:54:44.51: [22031]: USE 1-D MH

All good.   However, with the following etc/config file:

LogFacility:            daemon
CountryCode:            64
AreaCode:               4
LongDistancePrefix:     1
InternationalPrefix:    00
DialStringRules:        etc/dialrules
ServerTracing:          1
MaxSetupAttempts:       5
ModemPageDoneTimeout:   90000
ModemPageStartTimeout:  90000
MaxDials:               5
JobReqBusy:             240
JobReqNoAnswer:         240
JobReqNoCarrier:        240
JobReqNoFCon:           240
JobReqOtherS2:          240
Use2D:                  No

a normal "sendfax -n -d <number> <filename>" command will do this:

Sep 21 16:11:33.10: [22269]: SESSION BEGIN 000000002 6404XXXXXXX
Sep 21 16:11:33.10: [22269]: HylaFAX (tm) Version 4.2.1
Sep 21 16:11:33.10: [22269]: SEND FAX: JOB 12 DEST 04XXXXXXX COMMID 000000002 DEVICE '/dev/cua/dgrasa01'
Sep 21 16:11:33.11: [22269]: <-- [10:AT+FTBC=0\r]
Sep 21 16:11:33.37: [22269]: --> [2:OK]
Sep 21 16:11:33.37: [22269]: <-- [10:AT+FBOR=0\r]
Sep 21 16:11:33.63: [22269]: --> [2:OK]
Sep 21 16:11:33.63: [22269]: <-- [13:AT+FPHCTO=30\r]
Sep 21 16:11:33.89: [22269]: --> [2:OK]
Sep 21 16:11:33.89: [22269]: <-- [24:AT+FDCC=1,5,2,2,3,2,0,0\r]
Sep 21 16:11:34.17: [22269]: --> [2:OK]
Sep 21 16:11:34.17: [22269]: DIAL 104XXXXXXX
Sep 21 16:11:34.17: [22269]: <-- [15:ATDT104XXXXXXX\r]
Sep 21 16:11:48.88: [22269]: --> [5:+FCON]
Sep 21 16:11:52.22: [22269]: --> [28:+FCSI:"        64 4 XXXXXXX"]
Sep 21 16:11:52.22: [22269]: REMOTE CSI "64 4 XXXXXXX"
Sep 21 16:11:52.22: [22269]: --> [22:+FDIS: 1,5,0,2,3,1,0,2]
Sep 21 16:11:52.22: [22269]: --> [2:OK]
Sep 21 16:11:52.22: [22269]: REMOTE best rate 14400 bit/s
Sep 21 16:11:52.22: [22269]: REMOTE max A4 page width (215 mm)
Sep 21 16:11:52.22: [22269]: REMOTE max unlimited page length
Sep 21 16:11:52.22: [22269]: REMOTE best vres 7.7 line/mm
Sep 21 16:11:52.22: [22269]: REMOTE best format 2-D MMR
Sep 21 16:11:52.22: [22269]: REMOTE supports T.30 Annex A, 64-byte ECM
Sep 21 16:11:52.22: [22269]: REMOTE best 10 ms, 5 ms/scanline
Sep 21 16:11:52.22: [22269]: USE 14400 bit/s
Sep 21 16:11:52.22: [22269]: USE error correction mode
Sep 21 16:11:52.22: [22269]: USE 0 ms/scanline
Sep 21 16:11:52.22: [22269]: SEND file "docq/doc12.ps;00"
Sep 21 16:11:52.22: [22269]: USE A4 page width (215 mm)
Sep 21 16:11:52.22: [22269]: USE unlimited page length
Sep 21 16:11:52.22: [22269]: USE 3.85 line/mm
Sep 21 16:11:52.22: [22269]: USE 2-D MMR
Sep 21 16:11:52.22: [22269]: <-- [24:AT+FDIS=0,5,0,2,3,1,0,0\r]
Sep 21 16:11:52.48: [22269]: --> [2:OK]
Sep 21 16:11:52.48: [22269]: <-- [7:AT+FDT\r]
Sep 21 16:12:00.24: [22269]: --> [22:+FDCS: 0,5,0,2,3,1,0,0]
Sep 21 16:12:00.24: [22269]: --> [7:CONNECT]
Sep 21 16:12:00.24: [22269]: SEND wait for XON
Sep 21 16:12:00.24: [22269]: --> [1:]
Sep 21 16:12:00.24: [22269]: SEND begin page
Sep 21 16:12:00.24: [22269]: Reading MH-compressed image file
Sep 21 16:12:00.25: [22269]: <-- data [1040]
Sep 21 16:12:00.25: [22269]: <-- data [1039]
Sep 21 16:12:00.25: [22269]: <-- data [1039]
Sep 21 16:12:00.25: [22269]: <-- data [1044]
Sep 21 16:12:00.25: [22269]: <-- data [1037]
Sep 21 16:12:00.25: [22269]: <-- data [1044]
Sep 21 16:12:00.25: [22269]: <-- data [1046]
Sep 21 16:12:00.25: [22269]: <-- data [1043]
Sep 21 16:12:00.25: [22269]: <-- data [240]
Sep 21 16:12:00.25: [22269]: SENT 8429 bytes of data
Sep 21 16:12:00.25: [22269]: <-- data [2]
Sep 21 16:12:00.25: [22269]: SEND end page
Sep 21 16:13:46.80: [22269]: --> [50:]
Sep 21 16:13:46.80: [22269]: --> [2:OK]
Sep 21 16:13:46.80: [22269]: SEND send MPS (more pages, same document)
Sep 21 16:13:46.80: [22269]: <-- [9:AT+FET=0\r]
Sep 21 16:14:09.99: [22269]: --> [9:+FHNG: 40]
Sep 21 16:14:09.99: [22269]: REMOTE HANGUP: Unspecified Transmit Phase C error (code 40)
Sep 21 16:14:09.99: [22269]: <-- [5:ATH0\r]
Sep 21 16:14:09.99: [22269]: --> [2:OK]
Sep 21 16:14:10.06: [22269]: SESSION END

How can I force 1-D globally if the "Use2D" setting is being ignored?  Or more to the point, why is the Use2D setting being ignored?

Can anyone suggest how to debug this issue further?

If possible, please include a CC to my email address on any replies.

Thanks,

James Roberts-Thomson
Senior Systems Engineer (Unix)
IM Solution Design
ANZ National Bank Limited
Tel: +64 4 470-5360






Project hosted by iFAX Solutions