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] xferfaxlog to jobID/faxID/callcid to image filename?



Lukasz Szybalski wrote:
Is there a way from xferfaxlog to find link to a actual image of the
fax in recvq?

Is there an option in hylafax config somewhere to enable this
fax000113780.tif to be added to xferfaxlog?

Attached is a patch against HylaFAX+ 5.2.0 (which may or may not apply cleanly to other versions - but should be simple-enough to apply manually) which will be in 5.2.1.


It causes faxgetty to put the recvq file name into the previously-unused 5th column in RECV xferfaxlog records. (This column corresponds with "jobid" for SEND records.)

Thanks,

Lee.
diff -Nru hylafax.orig/faxd/faxGettyApp.c++ hylafax/faxd/faxGettyApp.c++
--- hylafax.orig/faxd/faxGettyApp.c++	2007-12-22 11:59:16.000000000 -0800
+++ hylafax/faxd/faxGettyApp.c++	2007-12-24 10:18:34.089855512 -0800
@@ -903,7 +903,7 @@
     ai.npages = ri.npages;
     ai.params = ri.params.encode();
     ai.status = ri.reason;
-    ai.jobid = "";
+    ai.jobid = ri.qfile;
     ai.jobtag = "";
     ai.callid = ri.callid;
     ai.owner = "";
diff -Nru hylafax.orig/man/xferfaxlog.4f hylafax/man/xferfaxlog.4f
--- hylafax.orig/man/xferfaxlog.4f	2007-12-22 11:59:16.000000000 -0800
+++ hylafax/man/xferfaxlog.4f	2007-12-24 10:25:20.670045928 -0800
@@ -52,7 +52,7 @@
 A facsimile document reception record is of the form:
 .sp .5
 .ti +0.5i
-date \s-1RECV\s+1 commid modem \fI<null>\fP \fI<null>\fP fax ``local-number'' ``\s-1TSI\s+1'' params #pages jobtime conntime ``reason'' ``CIDName'' ``CIDNumber'' ``callid'' \fI<null>\fP ``dcs'' \fI<null>\fP
+date \s-1RECV\s+1 commid modem qfile \fI<null>\fP fax ``local-number'' ``\s-1TSI\s+1'' params #pages jobtime conntime ``reason'' ``CIDName'' ``CIDNumber'' ``callid'' \fI<null>\fP ``dcs'' \fI<null>\fP
 .sp .5
 .PP
 Call records are of the form:
@@ -110,6 +110,9 @@
 .B jobtag
 The client-specified job tag for outbound calls.
 .TP 14
+.B qfile
+The associated queue file for the event.
+.TP 14
 .B sender
 The sender/receiver's electronic mailing address
 (facsimile receptions are always attributed to the ``fax'' user).



Project hosted by iFAX Solutions