Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hylafax-users] Enable user information to be associated when sending a fax.

24 views
Skip to first unread message

Peter Maddin

unread,
Oct 4, 2011, 11:19:17 PM10/4/11
to hylafa...@hylafax.org
I would like to be able to associate an identifier when I submit a fax to Hylafax so this is displayed in the log file /var/spool/fax/etc/xferfaxlog

And faxstat.



In faxsend there is the i parameter



−i identifier Use the identifier string in any notification messages instead of the usual job identifier number.

This option is useful for applications that cross reference notification messages against

job submissions.



However when I use this I see nothing in the log file or faxstat.



I came across this at http://artfiles.org/hylafax.org/archive/html/2003-05/msg00471.html





I Use the -i option on the sendfax call like this



sendfax -n -N -i "myjobID" -d someone@12345678 myjob.ps

=============

Then...modify (in a RedHat installation) the /etc/hylafax/hfaxd.conf file

to include the "identifier" string

For example:



(in hfaxd.conf)



# The default format used to return job status queries.

# Note that clients can override this with JOBFMT.

#

#JobFmt: "%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"

# Modified Line below

JobFmt: "%12J %-4j %4i %1a %6.6o %-12.12v %5P %5D %7z %.80s"

# ====



This will allow you to see the specified job identifier in faxstat...



I modified /usr/share/fax/hfaxd.conf to contain



# The default format used to return job status queries.

# Note that clients can override this with JOBFMT.

#

#JobFmt: "%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"

JobFmt: "%12J %-4j %4i %1a %6.6o %-12.12v %5P %5D %7z %.80s"



This does not affect either the log file or faxtstat



I also created a .hylarc file for my login account, containing

# The default format used to return job status queries.

# Note that clients can override this with JOBFMT.

#

#JobFmt: "%-3j %3i %1a %6.6o %-12.12e %5P %5D %7z %.25s"

# Modified Line below

JobFmt: "%12J %-4j %4i %1a %6.6o %-12.12v %5P %5D %7z %.80s"





When I submit a fax using

sendfax -n -f PathCentreU...@health.wa.gov.au -d 0893811704 -i "peters test" ./peter.ps

then use



faxtstat –s



[he00273@Li001CRMPC he00273]$ faxstat -s

HylaFAX scheduler on localhost.localdomain: Running

Modem ttyS0 (555.1234): Running and idle

Modem ttyS1 (555.1212): Waiting for modem to come ready



JobTag JID Prio S Owner DialString Pages Dials TTS Status

8196 127 R root 0:4 0:9

8197 127 W root 0:0 0:9

8200 127 W he0027 0893811704 0:0 0:9

8198 127 W root 0:0 0:9

8199 127 W root 0:0 0:9

[he00273@Li001CRMPC he00273]$



I see nothing for JobTag



Possibly my version of Hylafax does not support this option.

or more probably I am doing something wrong.



I tried to get the version of Hylafax but the –i option for faxstat does not give me this information



−i Display additional status information for the server. This status typically has information such

as the HylaFAX version, the physical location of the server machine, and an administrative contact

for the server.



From the skimpy documentation from those who set up Hylafax, it is version 3.0pl1.



I don’t have any installation files for Hylafax (or even Linux for this server).

So I cannot refer to this for any information.



Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285
Mobile: 0423 540 825
E-Mail : peter...@iinet.net.au; peter....@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are intended solely for the named recipient's), may be confidential, and may be privileged or otherwise protected from disclosure in the public interest. The use, reproduction, disclosure or distribution of the contents of this e-mail transmission by any person other than the named recipient(s) is prohibited. If you are not a named recipient please notify the sender immediately.





Peter Maddin

unread,
Oct 7, 2011, 4:48:00 AM10/7/11
to hylafa...@hylafax.org
Had no replies to my query.



Anyway, found this http://www.hylafax.org/archive/2000-09/msg00008.php



on 9/3/00 2:30 PM, Jason Tonkin at jto...@linz.govt.nz wrote:



> /usr/bin/sendfax -f faxmonitor -R -v -n -d $phone_no -i $job_id

> $queued

> ...

> The scipt successfully extracts the FAXNO: and JOBID: then envokes

> sendfax with the above options, BUT the JOBID: number does not appear in

> the email confirmation.

>

> Anyone suggest any bright ideas?!?!

>

Yes, the -d option should be the last option on the command line. Place the

"-i $job_id" before "-d $phone_no". Here is a quote from the sendfax man

page:



"The order of options on the command line is significant.

Each fax to be transmitted is assigned the current value

of parameters specified on the command line; e.g. whether

or not to generate a cover page. This means that options

that specify parameters for a particular destination must

precede the dialstring specified with the -d option."



Alex Karahalios



So the parameters are order dependent!!.



Moved the –i parameter before the –d parameter and it worked.



Still green as grass but getting there.

Lee Howard

unread,
Oct 13, 2011, 2:56:56 AM10/13/11
to Peter Maddin, hylafa...@hylafax.org
Peter Maddin wrote:
>
> From the skimpy documentation from those who set up Hylafax, it is
> version 3.0pl1.
>

That's quite old. As I have had no experience running that HylaFAX
version it would be difficult for me to help you much with it.

Thanks,

Lee.


____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-us...@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sa...@ifax.com.*

0 new messages