HylaFAX The world's most advanced open source fax server

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

Re: Can only send one page to HP office fax/printer



At 10:24 AM 11/5/98 -0500, Aidan Van Dyk wrote:
>I'm not sure about this, but didn't some make a patch (or say he was
>working on one) to force HylaFAX to retrain at a lower speed in class
>2/2.0?
>
>Did this get anywhere?
>

oh, that would be me.

Here it is fairly untested but does seem to work.  Apply this patch to the
util/Class2Send.c++ file in the hylafax distribution and rebuild.  It will
help when the cause of the problem is line noise, or you are trying to
force the session down to 2400 where some fax machines seem willing to
accept the document.

- Robert

*** Class2Send.c++.orig Sat Feb 14 21:49:16 1998
--- Class2Send.c++      Mon Aug 17 18:59:21 1998
***************
*** 198,204 ****
  static fxBool
  pageInfoChanged(const Class2Params& a, const Class2Params& b)
  {
!     return (a.vr != b.vr || a.wd != b.wd || a.ln != b.ln || a.df != b.df);
  }

  /*
--- 198,204 ----
  static fxBool
  pageInfoChanged(const Class2Params& a, const Class2Params& b)
  {
!     return (a.vr != b.vr || a.wd != b.wd || a.ln != b.ln || a.df != b.df
|| a.
br != b.br);
  }

  /*
***************
*** 281,286 ****
--- 281,292 ----
                               " (giving up after 3 attempts)";
                        break;
                    }
+                   if (params.br == BR_2400) {
+                       emsg = "Unable to transmit page"
+                               "(NAK at all possible signalling rates)";
+                       break;
+                   }
+                   next.br--;
                    morePages = TRUE;   // retransmit page
                    transferOK = TRUE;
                    break;




Project hosted by iFAX Solutions