Difference between revisions of "Handbook:Server Operation:Tweaking and Customization"
(→Modem Config Files) |
|||
Line 36: | Line 36: | ||
More description of each value is given in the hylafax-config(5F) man page. | More description of each value is given in the hylafax-config(5F) man page. | ||
− | When you have arrived at the bottom of the list, then save this config to a file named as your $Id name, and place it in the config directory (usually /var/spool/hylafax/config). | + | When you have arrived at the bottom of the list, then save this config to a file named as your $Id name, and place it in the config directory (usually /var/spool/hylafax/config). Kill faxgetty if it is running. Now (re)run faxaddmodem. It should detect your modem appropriately by presenting you the config list rather than asking you for each setting. You now have a customized config file. |
− | Kill faxgetty if it is running. Now (re)run faxaddmodem. It should detect your modem appropriately by presenting you the config list rather than asking you for each setting. You now have a customized | + | <BR><BR> |
− | config file. | ||
− | |||
− | |||
<I>For more information please consult hylafax-config(5F) and faxaddmodem(8C).</I> | <I>For more information please consult hylafax-config(5F) and faxaddmodem(8C).</I> |
Revision as of 14:59, 20 December 2005
Open-source software is all about customization. So don't be surprised when most HylaFAX users consider customization a part of installation. In many cases some customization of the config files and the default coverpage will be necessary for desired HylaFAX functionality.
Modem Config Files
In the future, HylaFAX may be capable of "auto-configuring" most faxmodems. But currently, unless you're fortunate enough to be using a faxmodem that has been used by a HylaFAX developer or can find a functional config file from another HylaFAX user, then you will need to work on a config file for each of your faxmodems that you intend to use with HylaFAX. This can be done step-by-step during the faxaddmodem script, or as I prefer, a config file can be created prior to running faxaddmodem.
The config file contains all of the unique settings for a faxmodem. There are "default" settings built-into HylaFAX, but chances are good that all of these "defaults" are not appropriate or optimal for your particular faxmodem's make, model, or firmware revision. There are many possible differences between one faxmodem and another, and in order to properly create a config file you will need your faxmodem's AT and AT+F command set. These should be in the manual that [hopefully] came with your faxmodem.
Begin by using one of the following three "template" config files. If you do not know what class your faxmodem uses, then you can usually send it the 'AT+FCLASS=?
' command, and the faxmodem will
report the possible classes to use. You may see something like '0,1
', '0,1,1.0,2.0
', or '0,1,2,80
'. Class 0 is for data communication; Class 1, 1.0, 2, and 2.0 are fax protocols; and Class 80 is for voice communication. HylaFAX can utilize all of these classes, however, this document will only discuss faxing.
For Class 1 faxmodems, begin by using this file.
For Class 2 faxmodems, begin by using this file.
For Class 2.0 faxmodems, begin by using this file.
Start editing your config file by changing the '# $Id:
' line. At a minimum, change
the $Id name to something that identifies your config file and that is unique from all other config
files usually found in the /var/spool/hylafax/config directory. The $Id name should also be the filename used
for this config file. So, perhaps this line will appear as:
'# $Id: tweaking.html,v 1.28 2004/07/14 18:59:07 lhoward Exp $
'
Next, change the '# CONFIG:
' line to match your make, model, and intended flow control.
For Class 1, change ATI0
to match the result of 'ATI0
' and ATI3
to match the result of 'ATI3
'.
Replace the two 'name
's with anything to describe your modem.
For Class 2, change Manufacturer
to match the result of 'AT+FMFR?
' and Model
to match the result of 'AT+FMDL?
'.
For Class2.0, change Manufacturer
to match the result of 'AT+FMI?
' and Model
to match the result of 'AT+FMM?
'.
Replace flowcontrol
with your desired flow control method, 'NONE
', 'XONXOFF
' (software), or 'RTSCTS
' (hardware).
Now, proceed through the Modem* and Class* commands and replace the default value with the appropriate value for your modem. If your
desired values match the default values then that particular line may be removed (except for the *FillOrder and Class2AP* lines).
More description of each value is given in the hylafax-config(5F) man page.
When you have arrived at the bottom of the list, then save this config to a file named as your $Id name, and place it in the config directory (usually /var/spool/hylafax/config). Kill faxgetty if it is running. Now (re)run faxaddmodem. It should detect your modem appropriately by presenting you the config list rather than asking you for each setting. You now have a customized config file.
For more information please consult hylafax-config(5F) and faxaddmodem(8C).