HylaFAX The world's most advanced open source fax server |
Is there a function I can add in HylaFAX\Class1Recv.c++
protoTrace("RECV: begin page"); pageGood = recvPageData(tif, emsg); protoTrace("RECV: end page"); if (! pageGood) AbortCompletely() <========= I'll add it here
That will just drop the phone line (don't care if not send proper error to sending side) but that will clean the HylaFAX side of connection (send proper error through functions chain so faxq knows it failed, and the modem is hung-up properly)?
I need a quick way to be sure not to say "ok".
diff -Nru hylafax.orig/faxd/Class1Recv.c++ hylafax/faxd/Class1Recv.c++ --- hylafax.orig/faxd/Class1Recv.c++ 2006-04-25 13:40:10.964264496 -0700 +++ hylafax/faxd/Class1Recv.c++ 2006-04-25 13:40:50.923189816 -0700 @@ -835,8 +835,8 @@ emsg = "Failure to receive silence."; return (false); } - (void) transmitFrame(FCF_RTN|FCF_RCVR); - tracePPR("RECV send", FCF_RTN); + (void) transmitFrame(FCF_DCN|FCF_RCVR); + tracePPR("RECV send", FCF_DCN); /* * Reset the TIFF-related state so that subsequent * writes will overwrite the previous data.