See http://www.mainpine.co.uk/linuxsupport.html for details.
When running faxaddmodem, the following questions are asked, the "blue" responses are the only deviation from defaults:
Serial port that modem is connected to []? /ttyS8
Ok, time to setup a configuration file for the modem. The manual page config(5F) may be useful during this process. Also be aware that at any time you can safely interrupt this procedure.
Reading scheduler config file /home/test/hylafax/spool/etc/config.
No existing configuration, let's do this from scratch.
Country code [1]? 44
Area code [415]? 1373
Phone number of fax modem [+1.999.555.1212]? +44 1373 830768
Local identification string (for TSI/CIG) ["NothingSetup"]?
Long distance dialing prefix [1]? 0
International dialing prefix [011]? 01
Dial string rules file (relative to /home/test/hylafax/spool) [etc/dialrules]?
Tracing during normal server operation [1]?
Tracing during send and receive sessions [11]?
Protection mode for received facsimile [0600]?
Protection mode for session logs [0600]?
Protection mode for /ttyS8 [0600]?
Rings to wait before answering [1]?
Modem speaker volume [off]?
Command line arguments to getty program ["-h %l dx_%s"]?
Pathname of TSI access control list file (relative to /home/test/hylafax/spool) [""]?
Pathname of Caller-ID access control list file (relative to /home/test/hylafax/spool) [""]?
Tag line font file (relative to /home/test/hylafax/spool) [etc/lutRS18.pcf]?
Tag line format string ["From %%l|%c|Page %%P of %%T"]?
Time before purging a stale UUCP lock file (secs) [30]?
Hold UUCP lockfile during inbound data calls [Yes]?
Hold UUCP lockfile during inbound voice calls [Yes]?
Percent good lines to accept during copy quality checking [95]?
Max consecutive bad lines to accept during copy quality checking [5]?
Max number of pages to accept in a received facsimile [25]?
Syslog facility name for ServerTracing messages [daemon]?
Set UID to 0 to manipulate CLOCAL [""]?
Use available priority job scheduling mechanism [""]?
The non-default server configuration parameters are:
CountryCode: 44
AreaCode: 1373
FAXNumber: +44 1373 830768
LongDistancePrefix: 0
InternationalPrefix: 01
DialStringRules: etc/dialrules
SessionTracing: 11
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "NothingSetup"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
Are these ok [yes]?
Now we are going to probe the tty port to figure out the type of modem that is attached. This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the modem is turned off, this may hang (just go and cable up the modem or turn it on, or whatever).
Probing for best speed to talk to modem: 38400 OK.
About fax classes:
The difference between fax classes has to do with how HylaFAX interacts with the modem and the fax protocol features that are used when sending or receiving faxes. One class isn't inherently better than another; however, one probably will suit a user's needs better than others.
Class 1 relies on HylaFAX to perform the bulk of the fax protocol.
Class 2 relies on the modem to perform the bulk of the fax protocol.
Class 2.0 is similar to Class 2 but may include more features.
Class 1.0 is similar to Class 1 but adds V.34-fax capability.
Class 2.1 is similar to Class 2.0 but adds V.34-fax capability.
HylaFAX generally will have more features when using Class 1/1.0 than when using most modems' Class 2 or Class 2.0 implementations. Generally, any problems encountered in Class 1/1.0 can be resolved by modifications to HylaFAX, but usually any problems encountered in Class 2/2.0/2.1 will require the modem manufacturer to resolve it.
If you're unsure and your modem supports it, use Class 1.
This modem looks to have support for Class 1, 2, 1.0 and 2.1.
How should it be configured [1]? 1.0
Hmm, this looks like a Class 1.0 modem.
Product code (ATI0) is "Mainpine Venus V.92 I03.04.02 (0026SD) Voice V2 V92cap 12ns RAM Mercury".
Other information (ATI3) is "Mainpine Venus V.92 I03.04.02 (0026SD) Voice V2 V92cap 12ns RAM Mercury".
DTE-DCE flow control scheme [default]?
Modem manufacturer is "Mainpine".
Modem model is "RockForceDUO+".
Using prototype configuration file lucent-mt-10...
The modem configuration parameters are:
ModemFlowControl: rtscts
ModemRate: 57600
Are these ok [yes]?
Creating new configuration file /home/test/hylafax/spool/etc/config._ttyS8...
Creating fifo /home/test/hylafax/spool/FIFO._ttyS8 for faxgetty... done.
Done setting up the modem configuration.
Checking /home/test/hylafax/spool/etc/config for consistency...
...some parameters are different.
The non-default scheduler parameters are:
CountryCode: 44
AreaCode: 1373
LongDistancePrefix: 0
InternationalPrefix: 01
DialStringRules: etc/dialrules
Are these ok [yes]?
Creating new configuration file /home/test/hylafax/spool/etc/config...
...saving current file as /home/test/hylafax/spool/etc/config.sav.
Don't forget to run faxmodem(8C) (if you have a send-only environment)
or configure init to run faxgetty on /ttyS8.
[root@localhost fax-test-images]#
This configuration creates the following file in the spool area:
This file is in fact based on a template from the /var/spool/hylafax/spool/config/lucent-mt-10 area.
An alternative to using faxaddmodem would be to manually create the config files for each ttySX device to be included.
Once the ports have been added to the Hylafax configuration, it is recommended to assign a "faxgetty" process to each modem.
Faxgetty is a process which monitors the state of the modem, and is able to respond to incoming calls and schedule outgoing calls automatically.
The alternative is to manually define the state of each modem using a utility called faxstate - so faxgetty is definitely preferrable.
To install faxgetty, you need to edit the "/etc/inittab" file and, as an example, add the following entries:
# Add faxgetty entries to receive faxes
m1:2345:respawn:/usr/local/sbin/faxgetty /dev/ttyS4
m2:2345:respawn:/usr/local/sbin/faxgetty /dev/ttyS5
m3:2345:respawn:/usr/local/sbin/faxgetty /dev/ttyS6
m4:2345:respawn:/usr/local/sbin/faxgetty /dev/ttyS7
Note that this format and the file locations differ from the explanation on the HylaFAX website.
One entry is required for each ttySX device.
< Hylafax questions
< Questions