Configuringthe software
XFAX- User’s Guide 4.3a 10
3.3 Adding actions
Youcan tell faxmaster that it should execute a specific script or program after a
faxhas been sent or could not be sent. This could be useful if you want to update
your own databaseor similar and is done by using the
EXECUTE_AFTER_SEND keywordin the configuration file:
EXECUTE_AFTER_SEND=/usr/local/bin/faxafter
The specifiedprogram will be called with a number of parameters.
3.4 XFAX and multiple fax devices
Touse multiple fax devices, or fax lines, with XFAXfirst of all you need an
XFAXlicense that permits multiple lines. You can display the number of lines
your current license permits using faxmaste r –v.
Todefine which tty:s should be used by XFAX you use theFAXLINE keyword
in the XFAXconf iguration file. If you for example want to use tty1 and tty2 you
should use thefollowing:
FAXLINE=tty1:tty2
By defaultXFAX, when sending a fax, tries to use the first line specifiedby the
FAXLINE–keyword and if that one is busy it tries with the next one. You can
use thekeyword ROUND_ROBIN to make XFAX use the fax lines in a round-
robinm anner.This means that it alternates between the line in a cyclic way.The
first line specified is used for the first fax , then line number two and when the
end of thelist is reached it starts over from the beginning again.
All keywords in the configuration file speci fy attributes for all lines if not sur-
rounded bythe LINE ttyxx < … > keyword. If you for example would like to
definea differentinit-string for the modem on tty2, you could use:
LINE tty2 <
INIT_STRING=”AT&F&K4”
>
Keywords thatmay be used for line-specific attributes:
ACCEPT_USERS
AUTOPRINT
CLASS
DENY_USERS
DIAL_TIMEOUT
DIAL_PREFIX
EXIT_STRING
INIT_STRING
MAX_BPS
RECEIVE_ONLY
SEND_ONLY
XON_XOFF
When you displaythe queues for sent and failed faxes you can use the –x param-
eter to see whichline was used.This can be useful for debuggingpurposes.