HylaFAX The world's most advanced open source fax server

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

REMOTE HANGUP: Unspecified Transmit Phase B error (code 20)



Hello,

I do have a problem with my setup of HylaFAX 4.0 PL1.

I'm using HylaFAX 4.0 PL1 on a Sun running SunOS 5.5.1:

[MischaMaisky: fax/log] {325} % sysinfo


        General Information

Host Name is             MischaMaisky
Host Aliases is          maisky faxserver 
Host Address(es) is      192.67.205.162 
Host ID is               72607d6e
Serial Number is         1918926190
Manufacturer is          Sun (Sun Microsystems)
System Model is          SPARCstation 10 Model 21
Main Memory is           32 MB
Virtual Memory is        390 MB
ROM Version is           OpenBoot 2.9
Number of CPUs is        1
CPU Type is              sparc
App Architecture is      sparc
Kernel Architecture is   sun4m
OS Name is               SunOS
OS Version is            5.5.1
Kernel Version is        SunOS Release 5.5.1 Version Generic_103640-05 [UNIX(R) System V Release 4.0]

        Device Information

SUNW,SPARCstation-10
    options is a "PROM Settings"
    aliases is a "PROM Device Aliases"
    openprom is a "Open Boot PROM" device
    iommu0 is a "I/O Memory Management Unit" system bus
        sbus0 is a "SBus" system bus
            espdma is a "SCSI DMA" pseudo device
                esp0 is a "Generic SCSI" SCSI disk controller
                    c0t3d0 (sd3) is a "CONNER-CFP2107S2.14GB-172B" 2.0 GB disk drive
            ledma is a "LANCE Ethernet DMA" pseudo device
                le0 is a "AMD Lance Am7990" 10Mb/sec Ethernet network interface
            bpp is a "Sun Bidirectional Parallel Port"
            cgsix0 is a "GX 8-bit Accelerated Color Graphics [cgsix] (SUNW,501-1672)" frame buffer
    obio0 is a "On Board I/O" system bus
        zs0 is a "Zilog 8530" serial communications chip
        zs1 is a "Zilog 8530" serial communications chip
            kbd is a "Sun Type-5 US Unix" Keyboard
        eeprom is a "EEPROM (mk48t08)" device
        auxio is a "Auxiliary I/O"
    cpu0 is a "Model 20 SuperSPARC SPARCmodule" CPU
[MischaMaisky: fax/log] {326} % 

I compiled HylaFAX with Sun's CC (aka C++) compiler Version 4.1.

No problems so far.

Im using a Creatix SG 144 Modem on /dev/cua/a and/or /dev/term/a.

Here's the "config.cua_a" file...:

CountryCode:		49
AreaCode:		6151
FAXNumber:		"+49 6151 155-199"
LongDistancePrefix:	0
InternationalPrefix:	00
DialStringRules:	"etc/dialrules"
ServerTracing:		1
SessionTracing:		11
RecvFileMode:		0600
LogFileMode:		0600
DeviceMode:		0600
RingsBeforeAnswer:	0
SpeakerVolume:		off
GettyArgs:		"-h %l dx_%s"
LocalIdentifier:	"+49-6151-155199  HDGDV DARMSTADT"
TagLineFont:		etc/lutRS18.pcf
TagLineFormat:		"%%l|P%%p    %d.%m.%y   %R"
MaxRecvPages:		0
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:		Class2		# use class 2 interface
# ModemType:		Class1		# use class 2 interface
### ModemRate:		38400
ModemRate:		19200
ModemFlowControl:	rtscts		# default
# ModemFlowControl:	xonxoff
ModemWaitForConnect:	yes		# wait for CONNECT on answer
#
### ModemResetCmds:	AT&F2		# what you want for a Supra
ModemResetCmds:		ATX3S10=8S38=1
ModemNoFlowCmd:		AT&K		# disable flow control cmd
ModemHardFlowCmd:	AT&K3		# hardware flow control cmd
ModemSoftFlowCmd:	AT&K4		# software flow control cmd
ModemSetupDTRCmd:	AT&D2		# DTR off causes modem to reset
ModemSetupDCDCmd:	AT&C1		# DCD follows carrier
ModemSetupAACmd:	AT+FCLASS=0;+FAA=1 # enable in class 0
#
ModemSendFillOrder:	LSB2MSB		# as expected
ModemRecvFillOrder:	MSB2LSB		# opposite of what makes sense
Class2RecvDataTrigger:	"\022"		# a la 2388-B
### Class2DDISCmd:		AT+FDIS		# disable pre-dial DIS command hack

As you can see, I've tried nearly everything (rtscts <-> xonxoff, 38400 <->
19200 <-> 9600, Class1 <-> Class2, and the use of Class2DDISCmd) I could find
in the archives for the problem described below.

I also used the "-E" Option to sendfax, but no chance...

What's wrong:

Mostly:

May 21 15:56:37.92: [ 1871]: SESSION BEGIN 00000063 496151155399
May 21 15:56:37.93: [ 1871]: SEND FAX: JOB 20 DEST 399 COMMID 00000063
May 21 15:56:37.93: [ 1871]: DELAY 2600 ms
May 21 15:56:40.54: [ 1871]: <-- [27:ATX3S10=8S38=1E0V1Q0S0=0H0\r]
May 21 15:56:40.71: [ 1871]: --> [2:OK]
May 21 15:56:40.71: [ 1871]: <-- [21:ATS8=2S7=60&K3&D2&C1\r]
May 21 15:56:40.88: [ 1871]: --> [2:OK]
May 21 15:56:40.88: [ 1871]: <-- [12:AT+FCLASS=2\r]
May 21 15:56:41.04: [ 1871]: --> [2:OK]
May 21 15:56:41.04: [ 1871]: <-- [10:AT+FTBC=0\r]
May 21 15:56:41.20: [ 1871]: --> [2:OK]
May 21 15:56:41.20: [ 1871]: <-- [10:AT+FBOR=0\r]
May 21 15:56:41.36: [ 1871]: --> [2:OK]
May 21 15:56:41.36: [ 1871]: <-- [13:AT+FPHCTO=30\r]
May 21 15:56:41.52: [ 1871]: --> [2:OK]
May 21 15:56:41.52: [ 1871]: <-- [24:AT+FDCC=1,5,2,2,1,0,0,0\r]
May 21 15:56:41.69: [ 1871]: --> [2:OK]
May 21 15:56:41.69: [ 1871]: <-- [5:ATM0\r]
May 21 15:56:41.85: [ 1871]: --> [2:OK]
May 21 15:56:41.88: [ 1871]: <-- [12:AT+FCLASS=2\r]
May 21 15:56:42.14: [ 1871]: --> [2:OK]
May 21 15:56:42.14: [ 1871]: <-- [10:AT+FTBC=0\r]
May 21 15:56:42.40: [ 1871]: --> [2:OK]
May 21 15:56:42.40: [ 1871]: <-- [10:AT+FBOR=0\r]
May 21 15:56:42.66: [ 1871]: --> [2:OK]
May 21 15:56:42.66: [ 1871]: <-- [13:AT+FPHCTO=30\r]
May 21 15:56:42.92: [ 1871]: --> [2:OK]
May 21 15:56:42.92: [ 1871]: <-- [24:AT+FDCC=1,5,2,2,1,0,0,0\r]
May 21 15:56:43.19: [ 1871]: --> [2:OK]
May 21 15:56:43.19: [ 1871]: <-- [31:AT+FLID="+49-6151-155199  HDG"\r]
May 21 15:56:43.46: [ 1871]: --> [2:OK]
May 21 15:56:43.47: [ 1871]: DIAL 399
May 21 15:56:43.48: [ 1871]: <-- [8:ATDT399\r]
May 21 15:57:00.69: [ 1871]: --> [5:+FCON]
May 21 15:57:02.69: [ 1871]: --> [29:+FCSI: "    +49 6151 155 399"]
May 21 15:57:02.69: [ 1871]: REMOTE CSI "+49 6151 155 399"
May 21 15:57:02.94: [ 1871]: --> [22:+FDIS: 1,3,0,2,1,0,0,4]
May 21 15:57:03.06: [ 1871]: --> [2:OK]
May 21 15:57:03.06: [ 1871]: REMOTE best rate 9600 bit/s
May 21 15:57:03.06: [ 1871]: REMOTE max page width 1728 pixels in 215 mm
May 21 15:57:03.07: [ 1871]: REMOTE max unlimited page length 
May 21 15:57:03.07: [ 1871]: REMOTE best vres 7.7 line/mm
May 21 15:57:03.07: [ 1871]: REMOTE best format 2-D MR
May 21 15:57:03.07: [ 1871]: REMOTE best 20 ms, 10 ms/scanline
May 21 15:57:03.07: [ 1871]: USE 9600 bit/s
May 21 15:57:03.07: [ 1871]: USE 20 ms, 10 ms/scanline
May 21 15:57:03.08: [ 1871]: SEND file "docq/doc20.cover;01"
May 21 15:57:03.09: [ 1871]: Modem does not support document page width, max page width 2432 pixels, image width 1687 pixels
May 21 15:57:03.09: [ 1871]: <-- [5:ATH0\r]
May 21 15:57:03.34: [ 1871]: --> [9:+FHNG: 20]
May 21 15:57:03.34: [ 1871]: REMOTE HANGUP: Unspecified Transmit Phase B error (code 20)
May 21 15:57:04.37: [ 1871]: --> [2:OK]
May 21 15:57:04.38: [ 1871]: SESSION END

If I use "Class1" I get:

May 21 15:22:03.36: [ 1455]: SESSION BEGIN 00000047 496151155399
May 21 15:22:03.36: [ 1455]: SEND FAX: JOB 17 DEST 399 COMMID 00000047
May 21 15:22:03.37: [ 1455]: DELAY 2600 ms
May 21 15:22:06.97: [ 1455]: <-- [27:ATX3S10=8S38=1E0V1Q0S0=0H0\r]
May 21 15:22:07.14: [ 1455]: --> [2:OK]
May 21 15:22:07.14: [ 1455]: <-- [21:ATS8=2S7=60&K4&D2&C1\r]
May 21 15:22:07.31: [ 1455]: --> [2:OK]
May 21 15:22:07.31: [ 1455]: <-- [12:AT+FCLASS=1\r]
May 21 15:22:07.47: [ 1455]: --> [2:OK]
May 21 15:22:07.48: [ 1455]: <-- [19:AT+FCLASS=0;+FAA=1\r]
May 21 15:22:07.49: [ 1455]: --> [2:OK]
May 21 15:22:07.49: [ 1455]: <-- [5:ATM0\r]
May 21 15:22:07.65: [ 1455]: --> [2:OK]
May 21 15:22:07.68: [ 1455]: <-- [12:AT+FCLASS=1\r]
May 21 15:22:07.93: [ 1455]: --> [2:OK]
May 21 15:22:07.96: [ 1455]: DIAL 399
May 21 15:22:07.96: [ 1455]: <-- [8:ATDT399\r]
May 21 15:22:25.16: [ 1455]: --> [7:CONNECT]
May 21 15:22:26.21: [ 1455]: --> [2:OK]
May 21 15:22:26.22: [ 1455]: <-- [9:AT+FRH=3\r]
May 21 15:22:26.23: [ 1455]: --> [7:CONNECT]
May 21 15:22:26.91: [ 1455]: --> [2:OK]
May 21 15:22:26.92: [ 1455]: REMOTE CSI "+49 6151 155 399"
May 21 15:22:26.92: [ 1455]: <-- [9:AT+FRH=3\r]
May 21 15:22:26.93: [ 1455]: --> [7:CONNECT]
May 21 15:22:27.17: [ 1455]: --> [2:OK]
May 21 15:22:27.18: [ 1455]: REMOTE best rate 9600 bit/s
May 21 15:22:27.18: [ 1455]: REMOTE max page width 1728 pixels in 215 mm
May 21 15:22:27.18: [ 1455]: REMOTE max unlimited page length 
May 21 15:22:27.18: [ 1455]: REMOTE best vres 7.7 line/mm
May 21 15:22:27.18: [ 1455]: REMOTE best format 2-D MMR
May 21 15:22:27.18: [ 1455]: REMOTE supports T.30 Annex A, ECM
May 21 15:22:27.19: [ 1455]: REMOTE best 20 ms, 10 ms/scanline
May 21 15:22:27.19: [ 1455]: USE 9600 bit/s
May 21 15:22:27.19: [ 1455]: USE 20 ms, 10 ms/scanline
May 21 15:22:27.19: [ 1455]: SEND file "docq/doc17.cover;01"
May 21 15:22:27.20: [ 1455]: Modem does not support document page width, max page width 2432 pixels, image width 1687 pixels
May 21 15:22:27.20: [ 1455]: <-- [9:AT+FTH=3\r]
May 21 15:22:27.26: [ 1455]: --> [7:CONNECT]
May 21 15:22:27.27: [ 1455]: <-- data [3]
May 21 15:22:27.27: [ 1455]: <-- data [2]
May 21 15:22:28.58: [ 1455]: --> [2:OK]
May 21 15:22:28.60: [ 1455]: <-- [5:ATH0\r]
May 21 15:22:29.74: [ 1455]: --> [2:OK]
May 21 15:22:29.75: [ 1455]: SESSION END

The fax is a HP OfficeJet LX.

Anybody out there who might help my with this?

Sincerly,
        Matthias
-- 
     Matthias Pftzner     | pfuetzner@igd.fhg.de  | Ich werde nie mehr sagen,
  @work:  +49 6151 155-312 | @home: +49 6151 75717 | da das Leben nicht die
FhG-IGD, Wilhelminenstr. 7 | Lichtenbergstrae 73  | Kunst imitiert.
    64283 Darmstadt, FRG   | 64289 Darmstadt, FRG  | Woody Allen




Project hosted by iFAX Solutions