Nordic Star Products 4.3A manual Adding actions, Xfax and multiple fax devices

Page 10

Configuring the software

3.3 Adding actions

You can tell faxmaster that it should execute a specific script or program after a fax has been sent or could not be sent. This could be useful if you want to update your own database or similar and is done by using the EXECUTE_AFTER_SEND keyword in the configuration file:

EXECUTE_AFTER_SEND=/usr/local/bin/faxafter

The specified program will be called with a number of parameters.

3.4 XFAX and multiple fax devices

To use multiple fax devices, or fax lines, with XFAX first of all you need an XFAX license that permits multiple lines. You can display the number of lines your current license permits using faxmaster –v.

To define which tty:s should be used by XFAX you use the FAXLINE keyword in the XFAX configuration file. If you for example want to use tty1 and tty2 you should use the following:

FAXLINE=tty1:tty2

By default XFAX, when sending a fax, tries to use the first line specified by the FAXLINE –keyword and if that one is busy it tries with the next one. You can use the keyword ROUND_ROBIN to make XFAX use the fax lines in a round- robin manner. 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 the list is reached it starts over from the beginning again.

All keywords in the configuration file specify attributes for all lines if not sur- rounded by the LINE ttyxx < … > keyword. If you for example would like to define a different init-string for the modem on tty2, you could use:

LINE tty2 <

INIT_STRING=”AT&F&K4”

>

Keywords that may 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 display the queues for sent and failed faxes you can use the –x param- eter to see which line was used. This can be useful for debugging purposes.

XFAX - User’s Guide 4.3a

10

Image 10
Contents Xfax Contents Dialprefix Defaultprinter Dialtimeout Defaultfont DefaultmarginCharacterset Httpenable Waitfortone Bindir OverviewEtcdir SpooldirXfaxdir Installation Keywords Configuring the softwareEnvironment variables Adding actions Xfax and multiple fax devicesConfiguring the software Xfax User’s Guide 4.3a Sending a fax FaxsendAttaching a note to a fax One fax to several recipients group transmissionPrinting a fax before sending Scheduled transmissionsID of the fax in the queue Script xfaxScript faxadm Document codesTelephone cost file ETCDIR/cost ChargeperminuteLOCALZONE=LOCALLY Areacodes LocalzoneAreacodes 08LOCAL 031AREA 3 009ABROAD 0091USA Receiving faxes Automatic printing of incoming faxesHandling faxes Fax queuesScheduling a fax Canceling of a faxReschedule a fax IntrPrinting a fax Routine maintenanceListing faxes in a particular directory Cleaning the statistics file Using the client Using the address book in XfaxInstallation Xfax in a Windows environmentXfax in a Windows environment Overlay files and cover sheets Using overlay files as forms and cover pagesCover sheets the old way Date MessageTime Overlay files and cover sheets Xfax and e-mail SendmailScript faxmail Xfax and e-mail Installing Ghostscript and the Xfax driver Troubleshooting Integrated Http server Integrated Smtp server Modems and flow control Command reference CommandsFaxmaster FaxmailFaxmime From FaxprintFaxq SubjectFaxrm Faxsend1234 7586535 faxfile Faxstat FaxsrFaxwho Exit codes General keywords AccesshttpKeyword reference FaxlineAcceptusers AccesssmtpAdministrator AlertuserBrokenselect CharactersetDefaultprinter DefaultfontDefaultmargin DialtimeoutExecuteafterreceive DomainExecworkdir ExecuteaftersendFaildir ExecutebeforesendExitstring FailfaxnoHttpenable Jetfaxcopy InitstringJetfaxbusytries JetfaxpagetimeLocalprefix LockingstyleLpprintoption MailonerrorMailonsuccess Partialpages NoerrorsaveNostatistics PrintrectoleftReversestats ResolutionReceiveonly RoundrobinSmtpsender SmtpenableSmtpserver 15.1.82 T30RTC Symbolset15.1.81 T30ECM 15.1.83 T30PAGELENGTHXonxoff WaitfortoneWaitfordialtone Troubleshooting Troubleshooting Technical specifications Typefaces in Xfax Index