* handle repeated PPS, DCS, or EOR signals in V.34-Fax (26 Apr 2004)
* attempt to handle CTC signals from broken senders (26 Apr 2004)
* improved pagermap backreference error handling (22 Apr 2004)
-* add batching support to faxsend (19 Apr 2004)
+* add batching support to faxsend (19 Apr, 9 Jun 2004)
* change MaxConcurrentJobs to MaxConcurrentCalls (19 Apr 2004)
* improve V.34-Fax renegotiations by dropping 4800 bps per step (12 Apr 2004)
* improve some V.34-Fax error logging and handling (12, 19 Apr 2004)
fxStr& pph, fxStr& emsg, u_int& batched)
{
int ntrys = 0; // # retraining/command repeats
+ u_int ppm, previousppm = 0;
setDataTimeout(60, next.br); // 60 seconds for 1024 byte writes
hangupCode[0] = '\0';
* remote station (XXX need to deal with PRI requests).).
*/
morePages = !TIFFLastDirectory(tif);
- u_int ppm;
if (!decodePPM(pph, ppm, emsg))
goto failed;
/*
* We received no PPR.
*/
- if (ppm = PPM_EOM && (batched & BATCH_FIRST)) {
+ if (ppm == PPM_EOM && (batched & BATCH_FIRST)) {
emsg = "Batching protocol error";
protoTrace("The destination appears to not support batching.");
return (send_batchfail);
/*
* We were unable to negotiate settings and transfer page image data.
*/
- if (!(batched & BATCH_FIRST)) {
+ if (previousppm == PPM_EOM) {
emsg = "Batching protocol error";
protoTrace("The destination appears to not support batching.");
return (send_batchfail);
}
}
+ previousppm = ppm;
} while (transferOK && morePages && !hadHangup);
if (!transferOK) {
if (emsg == "") {