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] inbound faxes problem



Luigi Cerioli [fabbricadigitale] wrote:
Hi all,

I am running Hylafax 4.3.3 on the following platform:

OS: Linux Red Hat Enterprise 4
Modem: Eicon Diva Pri

In my configuration inbound faxes are mailed in PDF format
In some cases have the following error while receiving faxes

REMOTE HANGUP: Unspecified Phase D error (code 100)

In these cases the PDF attachments are corrupted.

I have the following modem configuration:

CountryCode:            XX
AreaCode:               XX
FAXNumber:              XXXXXXXXXXX
LongDistancePrefix:     0
InternationalPrefix:    0
DialStringRules:        etc/dialrules.europe
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0600
LogFileMode:            0600
DeviceMode:             0600
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "XXXXXX"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "%c|Page %%P of %%T"

ModemResetCmds:         "AT#CID=7"
RingExtended:           "RING CID:";
CIDNumber:              "RING "
CIDName:                "RING "

ModemType:              Class2
ModemRate:              19200   # on boards supporting V.34-fax,
                                # this may need to be 57600
ModemFlowControl:       rtscts
ModemNoFlowCmd:         AT&K0
ModemSoftFlowCmd:       AT&K4
ModemHardFlowCmd:       AT&K3

Class2APQueryCmd:       none
Class2SPLCmd:           none
Class2TBCCmd:           none
Class2ECMType:          2.0     # follows Class 2.0 spec, not Class 2

Class2CQQueryCmd:       !3
Class2CQCmd:            AT


This is the log of one of the inbound faxes with the problem


Jun 16 11:50:35.78: [16678]: SESSION BEGIN 000001997 XXXXXXXXXXX
Jun 16 11:50:35.78: [16678]: HylaFAX (tm) Version 4.4.3
Jun 16 11:50:35.78: [16678]: CallID: "CID:  DAD: XXXXXXXXXXX" "CID:  DAD: XXXXXXXXXX"
Jun 16 11:50:35.78: [16678]: <-- [4:ATA\r]
Jun 16 11:51:00.59: [16678]: --> [5:+FCON]
Jun 16 11:51:00.59: [16678]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyds01'
Jun 16 11:51:00.59: [16678]: RECV FAX: begin
Jun 16 11:51:00.59: [16678]: --> [26:+FTSI:     XXXXXXXXXXX]
Jun 16 11:51:00.59: [16678]: REMOTE TSI " XXXXXXXXXXX"
Jun 16 11:51:00.59: [16678]: --> [22:+FDCS: 0,5,0,2,0,2,0,0]
Jun 16 11:51:00.59: [16678]: REMOTE wants 14400 bit/s
Jun 16 11:51:00.59: [16678]: REMOTE wants A4 page width (215 mm)
Jun 16 11:51:00.59: [16678]: REMOTE wants unlimited page length
Jun 16 11:51:00.59: [16678]: REMOTE wants 3.85 line/mm
Jun 16 11:51:00.59: [16678]: REMOTE wants 1-D MH
Jun 16 11:51:00.59: [16678]: REMOTE wants T.30 Annex C, half duplex ECM
Jun 16 11:51:00.59: [16678]: --> [2:OK]
Jun 16 11:51:00.59: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:51:00.59: [16678]: --> [5:+FCFR]
Jun 16 11:51:00.59: [16678]: --> [22:+FDCS: 0,5,0,2,0,2,0,0]
Jun 16 11:51:00.59: [16678]: REMOTE wants 14400 bit/s
Jun 16 11:51:00.59: [16678]: REMOTE wants A4 page width (215 mm)
Jun 16 11:51:00.59: [16678]: REMOTE wants unlimited page length
Jun 16 11:51:00.59: [16678]: REMOTE wants 3.85 line/mm
Jun 16 11:51:00.59: [16678]: REMOTE wants 1-D MH
Jun 16 11:51:00.59: [16678]: REMOTE wants T.30 Annex C, half duplex ECM
Jun 16 11:51:00.59: [16678]: --> [7:CONNECT]
Jun 16 11:51:00.59: [16678]: RECV: begin page
Jun 16 11:51:00.59: [16678]: RECV: send trigger 021
Jun 16 11:51:00.59: [16678]: <-- data [1]
Jun 16 11:51:00.59: [16678]: Copy quality checking performed by host
Jun 16 11:51:29.95: [16678]: RECV: 32678 bytes of data, 542 total lines
Jun 16 11:51:57.50: [16678]: RECV: 32666 bytes of data, 1083 total lines
Jun 16 11:51:59.12: [16678]: RECV: 784 bytes of data, 1133 total lines
Jun 16 11:51:59.12: [16678]: --> [13:+FPTS: 1,1129]
Jun 16 11:51:59.12: [16678]: --> [7:+FET: 0]
Jun 16 11:51:59.12: [16678]: RECV recv MPS (more pages, same document)
Jun 16 11:51:59.12: [16678]: --> [2:OK]
Jun 16 11:51:59.12: [16678]: RECV send MCF (message confirmation)
Jun 16 11:51:59.12: [16678]: RECV FAX (000001997): from XXXXXXXXXXX, page 1 in 0:59, INF, 3.85 line/mm, 1-D MH, 14400 bit/s
Jun 16 11:51:59.12: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:51:59.12: [16678]: --> [7:CONNECT]
Jun 16 11:51:59.12: [16678]: RECV: begin page
Jun 16 11:51:59.12: [16678]: RECV: send trigger 021
Jun 16 11:51:59.12: [16678]: <-- data [1]
Jun 16 11:51:59.12: [16678]: Copy quality checking performed by host
Jun 16 11:52:21.63: [16678]: RECV: 32754 bytes of data, 307 total lines
Jun 16 11:52:49.98: [16678]: RECV: 32705 bytes of data, 576 total lines
Jun 16 11:53:09.14: [16678]: RECV: 32689 bytes of data, 851 total lines
Jun 16 11:53:24.82: [16678]: RECV: 24216 bytes of data, 1132 total lines
Jun 16 11:53:24.82: [16678]: --> [13:+FPTS: 1,1128]
Jun 16 11:53:24.82: [16678]: --> [7:+FET: 0]
Jun 16 11:53:24.82: [16678]: RECV recv MPS (more pages, same document)
Jun 16 11:53:24.82: [16678]: --> [2:OK]
Jun 16 11:53:24.82: [16678]: RECV send MCF (message confirmation)
Jun 16 11:53:24.82: [16678]: RECV FAX (000001997): from XXXXXXXXXXX, page 2 in 1:25, INF, 3.85 line/mm, 1-D MH, 14400 bit/s
Jun 16 11:53:24.82: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:53:24.82: [16678]: --> [7:CONNECT]
Jun 16 11:53:24.82: [16678]: RECV: begin page
Jun 16 11:53:24.82: [16678]: RECV: send trigger 021
Jun 16 11:53:24.82: [16678]: <-- data [1]
Jun 16 11:53:24.82: [16678]: Copy quality checking performed by host
Jun 16 11:53:47.28: [16678]: RECV: 32692 bytes of data, 398 total lines
Jun 16 11:54:14.03: [16678]: RECV: 32709 bytes of data, 691 total lines
Jun 16 11:54:26.93: [16678]: RECV: 19957 bytes of data, 1132 total lines
Jun 16 11:54:26.93: [16678]: --> [13:+FPTS: 1,1128]
Jun 16 11:54:26.93: [16678]: --> [7:+FET: 0]
Jun 16 11:54:26.93: [16678]: RECV recv MPS (more pages, same document)
Jun 16 11:54:26.93: [16678]: --> [2:OK]
Jun 16 11:54:26.93: [16678]: RECV send MCF (message confirmation)
Jun 16 11:54:26.93: [16678]: RECV FAX (000001997): from XXXXXXXXXXX, page 3 in 1:02, INF, 3.85 line/mm, 1-D MH, 14400 bit/s
Jun 16 11:54:26.93: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:54:26.93: [16678]: --> [7:CONNECT]
Jun 16 11:54:26.93: [16678]: RECV: begin page
Jun 16 11:54:26.93: [16678]: RECV: send trigger 021
Jun 16 11:54:26.93: [16678]: <-- data [1]
Jun 16 11:54:26.93: [16678]: Copy quality checking performed by host
Jun 16 11:54:48.58: [16678]: RECV: 32767 bytes of data, 779 total lines
Jun 16 11:54:54.64: [16678]: RECV: 9472 bytes of data, 1132 total lines
Jun 16 11:54:54.64: [16678]: --> [13:+FPTS: 1,1128]
Jun 16 11:54:54.64: [16678]: --> [7:+FET: 0]
Jun 16 11:54:54.64: [16678]: RECV recv MPS (more pages, same document)
Jun 16 11:54:54.64: [16678]: --> [2:OK]
Jun 16 11:54:54.64: [16678]: RECV send MCF (message confirmation)
Jun 16 11:54:54.64: [16678]: RECV FAX (000001997): from XXXXXXXXXXX, page 4 in 0:28, INF, 3.85 line/mm, 1-D MH, 14400 bit/s
Jun 16 11:54:54.64: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:54:54.64: [16678]: --> [7:CONNECT]
Jun 16 11:54:54.64: [16678]: RECV: begin page
Jun 16 11:54:54.64: [16678]: RECV: send trigger 021
Jun 16 11:54:54.64: [16678]: <-- data [1]
Jun 16 11:54:54.64: [16678]: Copy quality checking performed by host
Jun 16 11:55:16.29: [16678]: RECV: 32678 bytes of data, 478 total lines
Jun 16 11:55:39.79: [16678]: RECV: 32713 bytes of data, 970 total lines
Jun 16 11:55:47.27: [16678]: RECV: 6963 bytes of data, 1133 total lines
Jun 16 11:55:47.27: [16678]: --> [13:+FPTS: 1,1129]
Jun 16 11:55:47.27: [16678]: --> [7:+FET: 0]
Jun 16 11:55:47.27: [16678]: RECV recv MPS (more pages, same document)
Jun 16 11:55:47.27: [16678]: --> [2:OK]
Jun 16 11:55:47.27: [16678]: RECV send MCF (message confirmation)
Jun 16 11:55:47.27: [16678]: RECV FAX (000001997): from XXXXXXXXXXX, page 5 in 0:53, INF, 3.85 line/mm, 1-D MH, 14400 bit/s
Jun 16 11:55:47.27: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:55:47.27: [16678]: --> [7:CONNECT]
Jun 16 11:55:47.27: [16678]: RECV: begin page
Jun 16 11:55:47.27: [16678]: RECV: send trigger 021
Jun 16 11:55:47.27: [16678]: <-- data [1]
Jun 16 11:55:47.27: [16678]: Copy quality checking performed by host
Jun 16 11:55:52.00: [16678]: RECV: 8 bytes of data, 4 total lines
Jun 16 11:55:52.00: [16678]: --> [10:+FPTS: 2,0]
Jun 16 11:55:52.00: [16678]: --> [7:+FET: 2]
Jun 16 11:55:52.00: [16678]: RECV recv EOP (no more pages or documents)
Jun 16 11:55:52.00: [16678]: --> [2:OK]
Jun 16 11:55:52.00: [16678]: RECV send RTN (retrain negative)
Jun 16 11:55:52.00: [16678]: <-- [10:AT+FPTS=2\r]
Jun 16 11:55:52.00: [16678]: --> [2:OK]
Jun 16 11:55:52.00: [16678]: <-- [7:AT+FDR\r]
Jun 16 11:55:52.00: [16678]: --> [10:+FHNG: 100]
Jun 16 11:55:52.00: [16678]: REMOTE HANGUP: Unspecified Phase D error (code 100)
Jun 16 11:55:52.00: [16678]: RECV keeping unconfirmed page
Jun 16 11:55:52.00: [16678]: RECV FAX (000001997): from XXXXXXXXXXX, page 6 in 0:05, INF, 3.85 line/mm, 1-D MH, 14400 bit/s
Jun 16 11:55:52.00: [16678]: RECV FAX (000001997): recvq/fax000000830.tif from XXXXXXXXXXX, route to <unspecified>, 6 pages in 4:52
Jun 16 11:55:52.00: [16678]: RECV FAX: bin/faxrcvd "recvq/fax000000830.tif" "ttyds01" "000001997" "" "CID:  DAD: XXXXXXXXXXX" "CID:  DAD: XXXXXXXXXXX"
Jun 16 11:55:52.00: [16678]: RECV FAX: end
Jun 16 11:55:52.00: [16678]: SESSION END


Thanks for any help


Regards

Luigi



Luigi Cerioli
l.cerioli@xxxxxxxxxxxxxxxxxxx

fabbricadigitale Srl
tel. +39 0375 284600 fax +39 02 57760002
http://www.fabbricadigitale.it - mail: info@xxxxxxxxxxxxxxxxxxx


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


Your log shows an error caused by remote fax. your log says: "REMOTE HANGUP: Unspecified Phase D error (code 100)".
It seems to me an error in closing the fax transmission. Log says: "RECV recv EOP (no more pages or documents), so I suppose all the pages are transmitted.
Usually, this kind of errors arises from wrong communication between fax.
Can you specify what do you mean by "corrupted" pdf? Do you mean the pdf shows an incomplete (trunked) fax image or do you mean a file that you can't open at all?
Can you check if the tif image of the received fax (in recvq/ directory) is corrupted? I mean, is the fax complete in the tif image, or is trunked?
Anyway, I suggest to reconfigure your fax (faxaddmodem) using 1.0 or 2.0 and not 1 or 2.
Good luck!


Giuliano


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




Project hosted by iFAX Solutions