From ffb3383638024b5ebc04dcdd94de0050bd0b880b Mon Sep 17 00:00:00 2001 From: Lee Howard Date: Thu, 27 Jan 2005 19:50:58 +0000 Subject: [PATCH] Bug 118: force the Class 2 driver to send AT+FDIS following EOM --- CHANGES | 1 + faxd/Class2Send.c++ | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index c69e9f8b..5d75e14d 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ Changelog for HylaFAX +* force the Class 2 driver to repeat the +FDIS command after EOM * add FaxParams class and some utilization of it Changelog for HylaFAX 4.2.1 - Jan 11, 2005 diff --git a/faxd/Class2Send.c++ b/faxd/Class2Send.c++ index 5d227d75..155f6454 100644 --- a/faxd/Class2Send.c++ +++ b/faxd/Class2Send.c++ @@ -274,8 +274,11 @@ Class2Modem::sendPhaseB(TIFF* tif, Class2Params& next, FaxMachineInfo& info, if (!decodePPM(pph, ppm, emsg)) goto failed; - if (ppm == PPM_EOP && !(batched & BATCH_LAST)) + if (ppm == PPM_EOP && !(batched & BATCH_LAST)) { ppm = PPM_EOM; + // this should force us to resend disCmd, since some modems don't remember + params.vr = (u_int) -1; + } tracePPM("SEND send", ppm); u_int ppr; -- 2.47.3