LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2019, 03:11 PM   #1
The Sego Sago Kid
Member
 
Registered: Feb 2015
Location: PA USA
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled
Hylafax question


Any Hylafax users here who could help me out?

I have a simple Hylafax server setup on Centos 7 that works fine, but I'd like to rename the saved fax TIFF files so that the filename includes the caller ID info.

I have edited my FaxDispatch file to do so. However, it seems like all of the callerID variables hold empty strings when I echo them from FaxDispatch. $CIDNUMBER, $CIDNAME, $CALLERID1, $CALLERID2... all are blank. $FILENAME, on the other hand, is fine and contains the proper string (fax000000x.tif).

I know that the callerID info is collected since it appears in the e-mail dispatch.

Any thoughts? The documentation claims $CIDNUMBER and $CIDNAME are available in FaxDispatch's scope.

Last edited by The Sego Sago Kid; 07-29-2019 at 03:13 PM.
 
Old 07-29-2019, 04:12 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Start with the docs. See if you can find what you want to do.

https://www.hylafax.org/documentation/
https://www.hylafax.org/how-to/datestamp/
 
Old 07-29-2019, 06:52 PM   #3
The Sego Sago Kid
Member
 
Registered: Feb 2015
Location: PA USA
Distribution: Slackware
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Start with the docs. See if you can find what you want to do.

https://www.hylafax.org/documentation/
https://www.hylafax.org/how-to/datestamp/
Thanks for the reply. That timestamp link provided is for timestamping the fax image itself, not the filename. I can timestamp the filename easily anyway in FaxDispatch with an `echo date`.

The issue is with the caller ID variables. See here https://legacy.hylafax.org/man/6.0.6/faxrcvd.1m.html for example:

I ought to be able to use CIDNUMBER and CIDNAME in FaxDispatch but they still come up as blank strings.
 
Old 07-30-2019, 08:54 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
https://legacy.hylafax.org/man/6.0.6...server.4f.html
Quote:
Hyla FAX supports multiple modems on a host. A single process acts as central queueing agent for all outbound jobs. Typically each modem also has a server process that monitors the modem status and handles inbound phone calls. Per-modem server processes communicate with the central queueing agent using FIFO special files; see mknod(2) or mkfifo(2). Any other synchronization between server processes is done using file-level locking. The faxq process listens for commands written to the file named FIFO, while each faxgetty process listens for commands written to a per-device file named FIFO.devid (where devid is an identifier derived from the name of the device special file to which the modem is connected; e.g. ttym2 for /dev/ttym2, term_10 for /dev/term/10.) To send a command to the queueing agent, one writes to FIFO. This is useful, for example, for submitting a job for transmission. To send a command to a specific faxgetty process, the FIFO.devid file is used.
https://legacy.hylafax.org/man/6.0.6/faxrcvd.1m.html
Quote:
This script can route facsimile directly to the intended recipient. To do this create a shell script etc/FaxDispatch in the spooling area that sets SENDTO to the receiver’s electronic mail address. For example,
You are going to have to study how that works. Are you sure that the data isn't being sent to a named pipe and then used from it.
If so then there you'll have to catch the "$var" it as it flows though the pipe.

The man page gives you a script to use on the spooler. Maybe someone else has used it and can tell you more. Or you can be the hero that figures it out and posts back what you find for everyone else.
 
Old 08-28-2019, 02:02 PM   #5
The Sego Sago Kid
Member
 
Registered: Feb 2015
Location: PA USA
Distribution: Slackware
Posts: 47

Original Poster
Rep: Reputation: Disabled
To those who may end up here from google:

I still have no idea why I can't use $CIDNAME, $CIDNUMBER, or $CALLID[n] in FaxDispatch like apparently every other person who has ever run a Hylafax server, but I did find a variable that does retain that info: $SENDER

This is used in the e-mail dispatch and contains, it seems, the Caller ID Name; or if there is no name, the Caller ID number. If you wanted both, and you have the same problem as me, it seems you're out of luck. But this is good enough for me. So my very simple FaxDispatch, which converts the fax to PDF and gives it a descriptive name, is:

Code:
TIFF2PDF=/usr/bin/tiff2pdf

if [ -f $FILE ]; then
     $TIFF2PDF -o /var/spool/hylafax/recvq/$SENDER-$FILENAME.pdf $FILE
fi
 
  


Reply

Tags
hylafax



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
avmfritzcapi + hylafax j-ray Linux - Software 1 08-01-2019 01:11 PM
Hylafax Setup Question on Slackware 12 Ramonvel Slackware 1 06-21-2008 04:32 AM
Hylafax on Linux and Windows Clients chaoticanuck Linux - Newbie 0 12-26-2002 02:38 PM
Can anyone help with Hylafax rlkiddjr Linux - Software 0 05-01-2002 10:35 PM
Hylafax and tiffcp Pedroski Linux - Software 0 04-29-2002 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration