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] COMREC error (code 72), Normal and proper end of connection,



Giuseppe, if you're still able to easily reproduce these failures,
does this fix the error not being percolated up the stack?

diff --git a/faxd/Class2.c++ b/faxd/Class2.c++
index 6a1557b..9bd312d 100644
--- a/faxd/Class2.c++
+++ b/faxd/Class2.c++
@@ -851,9 +851,10 @@ const Status& Class2Modem::hangupStatus (const char* code)
     for (u_int i = 0; i < NCODES; i++) {
        const HangupCode& c = hangupCodes[i];
        if ((c.code[1] != NULL && strcasecmp(code, c.code[1]) == 0) ||
-           (c.code[2] != NULL && strcasecmp(code, c.code[2]) == 0))
+           (c.code[2] != NULL && strcasecmp(code, c.code[2]) == 0)) {
            s = Status(c.status, c.message);
            return s;
+       }
     }
     s = Status(210, "Unknown hangup code");
     return s;


As to the root of the errors, is it happening with many senders, or
just one sender?  We've seen these types of things (continual repeats
of other data after DCS) sometimes when (poorly perfoming) T.38
proxies were stuck in a leg of the call...

a.
On 30 August 2010 10:20, Giuseppe Sacco
<giuseppe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi all,
> today an HylaFAX 6.0.3 server received 5 consecutive calls without being
> able to completely receive the FAX.
>
> Calls 1, 3, 4, and 5 terminated with message "COMREC error (code 72)",
> while call 2 terminated with error message "Normal and proper end of
> connection".
>
> The log of first call is:
>
> Aug 30 09:36:07.25: [ 3464]: SESSION BEGIN 000002874 3902670YYYYY
> Aug 30 09:36:07.25: [ 3464]: HylaFAX (tm) Version 6.0.3
> Aug 30 09:36:07.25: [ 3464]: <-- [4:ATA\r]
> Aug 30 09:36:09.39: [ 3464]: --> [3:FAX]
> Aug 30 09:36:21.01: [ 3464]: --> [5:+FCON]
> Aug 30 09:36:21.01: [ 3464]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyS0'
> Aug 30 09:36:21.01: [ 3464]: STATE CHANGE: ANSWERING -> RECEIVING
> Aug 30 09:36:21.02: [ 3464]: RECV FAX: begin
> Aug 30 09:36:22.67: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:36:22.67: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:36:23.01: [ 3464]: --> [22:+FDCS: 1,5,0,2,0,0,0,0]
> Aug 30 09:36:23.01: [ 3464]: REMOTE wants 14400 bit/s
> Aug 30 09:36:23.01: [ 3464]: REMOTE wants A4 page width (215 mm)
> Aug 30 09:36:23.01: [ 3464]: REMOTE wants unlimited page length
> Aug 30 09:36:23.01: [ 3464]: REMOTE wants 7.7 line/mm
> Aug 30 09:36:23.01: [ 3464]: REMOTE wants 1-D MH
> Aug 30 09:36:23.12: [ 3464]: --> [2:OK]
> Aug 30 09:36:23.12: [ 3464]: <-- [7:AT+FDR\r]
> Aug 30 09:36:30.51: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:36:30.51: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:36:45.57: [ 3464]: --> [9:+FHNG: 72]
> Aug 30 09:36:45.57: [ 3464]: REMOTE HANGUP: COMREC error (code 72)
> Aug 30 09:36:46.40: [ 3464]: --> [2:OK]
> Aug 30 09:36:46.40: [ 3464]: RECV FAX (000002874): recvq/fax000001954.tif from +3902607XXXXX, route to <unspecified>, 0 pages in 0:00:25
> Aug 30 09:36:46.42: [ 3464]: RECV FAX:
> Aug 30 09:36:46.42: [ 3464]: RECV FAX: bin/faxrcvd "recvq/fax000001954.tif" "ttyS0" "000002874" ""
> Aug 30 09:36:46.42: [ 3464]: RECV FAX: end
> Aug 30 09:36:46.42: [ 3464]: SESSION END
>
> while log of call 2 is:
>
> Aug 30 09:38:30.48: [ 3464]: SESSION BEGIN 000002875 3902670YYYYY
> Aug 30 09:38:30.48: [ 3464]: HylaFAX (tm) Version 6.0.3
> Aug 30 09:38:30.48: [ 3464]: <-- [4:ATA\r]
> Aug 30 09:38:32.09: [ 3464]: --> [3:FAX]
> Aug 30 09:38:39.01: [ 3464]: --> [5:+FCON]
> Aug 30 09:38:39.01: [ 3464]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyS0'
> Aug 30 09:38:39.01: [ 3464]: STATE CHANGE: ANSWERING -> RECEIVING
> Aug 30 09:38:39.01: [ 3464]: RECV FAX: begin
> Aug 30 09:38:40.68: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:38:40.68: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:38:40.98: [ 3464]: --> [22:+FDCS: 1,5,0,2,0,0,0,0]
> Aug 30 09:38:40.98: [ 3464]: REMOTE wants 14400 bit/s
> Aug 30 09:38:40.98: [ 3464]: REMOTE wants A4 page width (215 mm)
> Aug 30 09:38:40.98: [ 3464]: REMOTE wants unlimited page length
> Aug 30 09:38:40.98: [ 3464]: REMOTE wants 7.7 line/mm
> Aug 30 09:38:40.98: [ 3464]: REMOTE wants 1-D MH
> Aug 30 09:38:41.09: [ 3464]: --> [2:OK]
> Aug 30 09:38:41.09: [ 3464]: <-- [7:AT+FDR\r]
> Aug 30 09:38:48.61: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:38:48.61: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:38:56.55: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:38:56.55: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:39:04.49: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:39:04.49: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:39:19.69: [ 3464]: --> [29:+FTSI: "       +3902607XXXXX"]
> Aug 30 09:39:19.69: [ 3464]: REMOTE TSI "+3902607XXXXX"
> Aug 30 09:39:26.28: [ 3464]: --> [8:+FHNG: 0]
> Aug 30 09:39:26.28: [ 3464]: REMOTE HANGUP: Normal and proper end of connection (code 0)
> Aug 30 09:39:27.11: [ 3464]: --> [2:OK]
> Aug 30 09:39:27.11: [ 3464]: RECV FAX (000002875): recvq/fax000001955.tif from +3902607XXXXX, route to <unspecified>, 0 pages in 0:00:48
> Aug 30 09:39:27.11: [ 3464]: RECV FAX: Normal and proper end of connection
> Aug 30 09:39:27.12: [ 3464]: RECV FAX (000002875): session with +3902607XXXXX terminated abnormally: Normal and proper end of connection
> Aug 30 09:39:27.12: [ 3464]: RECV FAX: bin/faxrcvd "recvq/fax000001955.tif" "ttyS0" "000002875" "Normal and proper end of connection"
> Aug 30 09:39:27.12: [ 3464]: RECV FAX: end
> Aug 30 09:39:27.12: [ 3464]: Normal and proper end of connection
> Aug 30 09:39:27.12: [ 3464]: SESSION END
>
> Is this a symptom of a problem in HylaFAX?
>
> Thanks,
> Giuseppe
>
>
> ____________________ 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*
>



-- 
Aidan Van Dyk                                             aidan@xxxxxxxx
Senior Software Developer                          +1 215 825-8700 x8103
iFAX Solutions, Inc.                                http://www.ifax.com/


____________________ 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