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] i received only 50% of my fax pages



Hi, Raphael
>Hi I have my hylafax installed on a debian server, plus I have cromtrol
>6 port RocketmodemII, my only promblem is, when I reveive a fax my page
>are not complet, all the time some lines a missing. I read some faq but
>I find nothing to help me. I reveive my fax and a tiff format.
>I realy need help
>Raphael

Your server run very good. In the my end I recive only 30%.
I found hylafax quality checking to restrictive.
So I patch source.
1) training restricted to 9600 and below
2) If page recived fisrt write to disk then we wait confirmation message.
     So if anything is recived nothing is cleared.

With my patch I recive 0.5 pages  1.5 pages and so on.
Patch is against 4.1.2 . I lazy to upgrade.

Aivils Stoss

hylafax-4.1.2-low-qual.diff

diff -Nurp hylafax-4.1.2/faxd/Class1Recv.c++
hylafax-4.1.2-changed/faxd/Class1Recv.c++
--- hylafax-4.1.2/faxd/Class1Recv.c++    Mon Aug 13 02:40:32 2001
+++ hylafax-4.1.2-changed/faxd/Class1Recv.c++      Fri Nov  1 12:15:15 2002
@@ -301,6 +301,11 @@ Class1Modem::recvTraining()
         protoTrace("RECV: reject TCF (zero run too short, min %u)",
minrun);
         ok = false;
     }
+    if ( curcap->br == BR_14400 || curcap->br == BR_12000 ) {
+        protoTrace("RECV: reject TCF (bitrate %s exceed 9600 limit)",
+                Class2Params::bitRateNames[curcap->br]);
+        ok = false;
+        }
     (void) waitFor(AT_NOCARRIER); // wait for message carrier to drop
     }
     /*
@@ -390,6 +395,7 @@ top:
          recvSetupTIFF(tif, group3opts, FILLORDER_LSB2MSB);
          pageGood = recvPageData(tif, emsg);
          protoTrace("RECV: end page");
+         if(pageGood) TIFFWriteDirectory(tif);
          if (!wasTimeout()) {
              /*
               * The data was received correctly, wait
@@ -500,7 +506,7 @@ top:
               * that we just received, write it to disk.
               */
              if (messageReceived) {
-              TIFFWriteDirectory(tif);
+              //TIFFWriteDirectory(tif);
               /*
                * Reset state so that the next call looks
                * first for page carrier or frame according
@@ -567,6 +573,7 @@ top:
         goto top;
     } else
     emsg = "T.30 T2 timeout, expected page not received";
+    if (pageGood) return (true);
     return (false);
 }

diff -Nurp hylafax-4.1.2/faxd/ModemConfig.c++
hylafax-4.1.2-changed/faxd/ModemConfig.c++
--- hylafax-4.1.2/faxd/ModemConfig.c++   Fri Feb 15 05:55:06 2002
+++ hylafax-4.1.2-changed/faxd/ModemConfig.c++     Thu Oct 31 17:51:25 2002
@@ -169,8 +169,8 @@ static const struct {
     u_int ModemConfig::* p;
     u_int           def;
 } numbers[] = {
-{ "percentgoodlines",        &ModemConfig::percentGoodLines,          95
},
-{ "maxconsecutivebadlines",  &ModemConfig::maxConsecutiveBadLines,5 },
+{ "percentgoodlines",        &ModemConfig::percentGoodLines,          10
},
+{ "maxconsecutivebadlines",  &ModemConfig::maxConsecutiveBadLines,200 },
 { "modemresetdelay",         &ModemConfig::resetDelay,           2600 },
 { "modemdtrdropdelay",       &ModemConfig::dtrDropDelay,         75 },
 { "modembaudratedelay",      &ModemConfig::baudRateDelay,        0 },


____________________ 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@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*




Project hosted by iFAX Solutions