HYLAFAX-CONFIG(5F)
๐ธ NAME ๐ธ
config โ the HylaFAX configuration database, aka the master vibes file ๐
โจ DESCRIPTION โจ
okay bestie, sit down, hydrate, because this is the blueprint ๐ซถ
HylaFAX keeps a configuration file for the central queueing agent, and also one for every single facsimile modem attached to a machine. That's right, every modem gets its own little personality doc ๐ . These files hold all the info about the modems and about how the HylaFAX server processes that service those modem should operate.
All these files live in the etc subdirectory. No cap.
- The configuration file for the
faxq(8C)program is namedconfig. - The per-modem configuration files, used by the
faxgetty(8C),faxsend(8C), andpagesend(8C)programs, have names of the formconfig.devid, where devid is an identifier derived from the name of the modem's device file. For example,ttym2for/dev/ttym2, andterm_10for/dev/term/10. ๐
๐ฆ the format, because it's literally so simple ๐ฆ
Configuration files have a simple format and are entirely ASCII. A configuration parameter is of the form:
tag: value
where a tag identifies a parameter and a value is either a string, a number, or a boolean value. Slay, that's it.
- Comments are introduced by the
#character and extend to the end of the line. so go ahead and annotate, queen โ๏ธ - String values start at the first non-blank character after the
:and continue to the first non-whitespace character โ or, if you want whitespace in there, you can enclose them in quote marks ("). String values wrapped in quote marks may also use the standard C programming conventions for specifying escape codes; e.g.\nfor a newline character and\xxxfor an octal value. iconic behavior honestly ๐ - Numeric values are specified according to the C programming conventions โ leading
0xfor hex, leading0for octal, otherwise decimal โ except for a few parameters, such asRecvFileMode, whose value is interpreted strictly as an octal number, andPageChopThreshold, whose value is interpreted strictly as a floating point number. โ ๏ธ don't get caught lacking on those two, fr fr. - Boolean values are case insensitive. For a true value, either
YesorOnshould be used. For a false value, useNoorOff. periodt ๐
ngl the whole file is giving "just read the tags and chill" โ no fancy syntax, no drama, just tag, colon, value. iykyk ๐
okay so real talk: this table is the master list of every tag and what type of value it expects. First half = stuff specific to how each server operates. Second half = stuff about servicing the modem. And the footnote markers? They are not decoration, bestie:
- ยน means the tag is used only by the HylaFAX scheduler process, so it should appear only in the file named
config. - ยฒ means both the scheduler and the per-device applications use it, so it should appear in all appropriate configuration files โ like
configand any per-device files that make sense. - No marker? Then it belongs only in per-device configuration files.
More detailed info about each item is coming after the table. For now, here's the whole lineup, no skips, no cap:
AdaptiveAnswerโ typeboolean, defaultNoโ enable adaptive answer of inbound callsAdminGroupโ typestring, defaultfaxadminโ System user group for administration (if PAM enabled)AllowIgnoreModemBusyยน โ typeboolean, defaultNoโ honor job requests to ignore modem busy statusAnswerRotaryโ typestring, defaultAnyโ alternatives for answering callsAnswerBiasโ typeinteger, default-โ bias to apply to successful rotary answerAreaCodeยฒ โ typestring, default-โ local area codeAuditHookยน โ typestring, default-โ command to run for faxq event auditingBadPageHandlingMethodโ typestring, defaultRTN-SAVEโ bad page received handling methodBatchLogsยน โ typeboolean, defaultYesโ keep all session logs of a batch in a single logCallIDAnswerLengthโ typeinteger, default-โ answer call when CallIDPattern receivedCallIDDisplayโ typeboolean, defaultNoโ display match in modem statusCallIDLabelโ typestring, default-โ label to use in presentation of the matchCallIDPatternโ typestring, default-โ call identification pattern stringCallIDRecordโ typeboolean, defaultYesโ record match in recvq image fileCallIDTypeโ typestring, default-โ type identifier for the CallIDPattern matchCIDNameโ typestring, default-โ equivalent to CallIDPattern (2)CIDNameAnswerLengthโ typeinteger, default0โ equivalent to CallIDAnswerLength (2)CIDNumberโ typestring, default-โ equivalent to CallIDPattern (1)CIDNumberAnswerLengthโ typeinteger, default0โ equivalent to CallIDAnswerLength (1)ClocalAsRootโ typeboolean, defaultNoโ set CLOCAL using root UIDContCoverCmdยน โ typestring, defaultbin/mkcoverโ continuation cover page generation programContCoverPageยน โ typestring, default-โ continuation cover page template filenameCountryCodeยฒ โ typestring, default-โ local country codeDestControlsยน โ typeobsolete, default-โ Obsoleted by JobControlDeviceModeโ typeoctal, default0600โ protection mode to use for modem deviceDialStringRulesยฒ โ typestring, default-โ dial string rules fileDistinctiveRingsโ typestring, default-โ configuration for distinctive ring cadencesDRingOffโ typestring, default-โ distinctive ring ``off'' cadence indicatorDRingOnโ typestring, default-โ distinctive ring ``on'' cadence indicatorDynamicConfigโ typestring, default-โ program for dynamic receive configurationEGettyArgsโ typestring, default-โ arguments passed to external getty programFAXNumberโ typestring, default-โ facsimile modem phone numberFaxRcvdCmdโ typestring, defaultbin/faxrcvdโ notification program for received facsimileGettyArgsโ typestring, default-โ arguments passed to getty programIncludeยฒ โ typestring, default-โ include another config fileInternationalPrefixยฒ โ typestring, default-โ dialing prefix for international callsJobControlCmdยน โ typestring, default-โ job control commandJobReqBusyโ typeinteger, default180โ requeue interval for BUSY dial resultJobReqDataConnโ typeinteger, default300โ requeue interval for data connection dial resultJobReqNoAnswerโ typeinteger, default300โ requeue interval for NO ANSWER dial resultJobReqNoCarrierโ typeinteger, default300โ requeue interval for NO CARRIER dial resultJobReqNoFConโ typeinteger, default300โ requeue interval for carrier without +FCON dial resultJobReqOtherยฒ โ typeinteger, default300โ requeue interval for ``other'' problemsJobReqProtoโ typeinteger, default60โ requeue interval after fax protocol errorJobRetryBusyโ typeinteger, default-โ number of retries for BUSY dial resultJobRetryDataConnโ typeinteger, default-โ number of retries for data connection dial resultJobRetryNoAnswerโ typeinteger, default-โ number of retries for NO ANSWER dial resultJobRetryNoCarrierโ typeinteger, default1โ number of retries for NO CARRIER dial resultJobRetryNoFConโ typeinteger, default-โ number of retries for carrier without +FCON dial resultJobRetryOtherโ typeinteger, default-โ number of retries for ``other'' problemsLockDataCallsโ typeboolean, defaultYesโ lock modem for the duration of an inbound data callLockVoiceCallsโ typeboolean, defaultYesโ lock modem for the duration of an inbound voice callLogCallsโ typeboolean, defaultYesโ Log all incoming calls as CALL records in xferfaxlogLogFacilityยฒ โ typestring, defaultdaemonโ syslog facility name for ServerTracing messagesLogFileModeโ typeoctal, default0600โ protection mode to use for session log filesLogRecvโ typeboolean, defaultYesโ Log received faxes as RECV records in xferfaxlogLogSendโ typeboolean, defaultYesโ Log sent faxes as SEND records in xferfaxlogLocalIdentifierโ typestring, default-โ local station identification stringLongDistancePrefixโ typestring, default-โ dialing prefix for long distance callsMaxBatchJobsยน โ typeinteger, default64โ max jobs in a batchMaxConcurrentCallsยน โ typeinteger, default1โ max concurrent jobs to process for a destinationMaxConcurrentPrepsยน โ typeinteger, default1โ maximum number of simultaneous job preparationsMaxConsecutiveBadLinesโ typeinteger, default5โ max consecutive bad rows for OK page qualityMaxDialsยน โ typeinteger, default12โ max phone calls to make to transmit a jobMaxProxyJobsยน โ typeinteger, default64โ max number of concurrent proxy jobsMaxRecvPagesโ typeinteger, defaultunlimitedโ max pages to permit in a receiveMaxSendPagesยน โ typeinteger, defaultunlimitedโ max pages to permit in a sendMaxSetupAttemptsโ typeinteger, default2โ max attempts to initialize a modemMaxTraversalยน โ typeinteger, default256โ max traversal into queue for batchingMaxTriesยน โ typeinteger, default3โ max attempts to transmit a jobMinAcceptedLineCountโ typeinteger, default10โ min number of rows for OK page qualityMissedPageHandlingMethodโ typestring, defaultRTNโ missed page received handling methodModemGroupยน โ typestring, default-โ define a name for a set of modemsModemPriorityโ typeinteger, default255โ scheduling priority for outbound jobsModemReadyStateโ typestring, defaultRโ ``ready state'' sent by faxgettyModemRingResponseโ typestring, default-โ command to respond after hearing RINGModemRingsBeforeResponseโ typeinteger, default0โ the number of rings before ModemRingResponseNoAnswerVoiceโ typeboolean, defaultfalseโ disable the answering of voice-indicated callsNoCarrierRetrysโ typeinteger, default-โ Deprecated - See JobRetryNoCarrierNotifyCmdยน โ typestring, defaultbin/notifyโ user notification programPageChopยน โ typestring, defaultlastโ control automatic truncation of trailing whitespacePageChopThresholdยน โ typefloat, default3.0โ whitespace truncation threshold (inches)PCL2FaxCmdยน โ typestring, defaultbin/pcl2faxโ PCL RIP command scriptPDF2FaxCmdยน โ typestring, defaultbin/pdf2faxโ PDF RIP command scriptPercentGoodLinesโ typeinteger, default95โ percentage of good rows for OK page qualityPollLockPokeModemโ typeboolean, defaultfalseโ check on modem every time the lock is polledPollLockWaitยฒ โ typeinteger, default30โ polling interval for lockfile presence/removal (secs)PollModemWaitโ typeinteger, default30โ polling interval when in ``modem wait'' state (secs)PollRcvdCmdโ typestring, defaultbin/pollrcvdโ delivery program for facsimile received by pollingPostScriptTimeoutยน โ typeinteger, default180โ timeout on POSTSCRIPT interpreter runs (secs)PrioritySchedulingโ typeboolean, defaultsee belowโ use available priority job scheduling mechanismPS2FaxCmdยน โ typestring, defaultbin/ps2faxโ POSTSCRIPT RIP command scriptQualifyCIDโ typeobsolete, default-โ See DynamicConfig and RejectCall for rejecting callsQualifyPWDโ typestring, default-โ file of PWD patterns for qualifying sendersQualifyTSIโ typestring, default-โ file of TSI patterns for qualifying sendersRecvDataFormatโ typestring, defaultadaptiveโ format for received facsimile dataRecvFileModeโ typeoctal, default0600โ protection mode to use for received facsimile filesRejectCallโ typeboolean, defaultfalseโ Reject the current callRingDataโ typestring, default-โ distinctive ring data call identifierRingExtendedโ typestring, default-โ extended ring message identifierRingFaxโ typestring, default-โ distinctive ring fax call identifierRingsBeforeAnswerโ typeinteger, default0โ rings to wait before answering phoneRingTimeoutโ typeinteger, default6000โ timeout in ms after RING before resetRingVoiceโ typestring, default-โ distinctive ring voice call identifierRTNHandlingMethodโ typestring, defaultRetransmit-Ignoreโ RTN signal handling methodSaveUnconfirmedPagesโ typeboolean, defaulttrueโ save or delete unconfirmed pages
okay bestie, we're still deep in the config parameter section and there is no turning back ๐ every single one is here, no skips, no cap โจ
SendFaxCmdยน โ string โ defaultbin/faxsendโ the fax transmit command script ๐SendPageCmdยน โ string โ defaultbin/pagesendโ the pager transmit command script โจSendUUCPCmdยน โ string โ defaultbin/uucpsendโ the UUCP transmit command script ๐ฆServerTracingยฒ โ integer โ default1โ non-session server tracing, lowkey logging vibe ๐SessionTracingยฒ โ integer โ default0xFFFโ send and receive session tracing, fr fr ๐ShareCallFailuresยฒ โ string โ defaultnoneโ which call failures should be shared ๐SpeakerVolumeโ string โ defaultQuietโ volume level for the modem speaker ๐StaggerCallsยน โ integer โ default0โ time to delay between starting outbound calls โณTagLineFontโ string โ default-โ tag line font filename ๐TagLineFormatโ string โ defaultsee belowโ tag line format string โจTagLineLocaleโ string โ defaultsee belowโ tag line format locale ๐TIFF2FaxCmdยฒ โ string โ defaultbin/tiff2faxโ TIFF converter command script ๐ผ๏ธTimeOfDayยน โ string โ defaultAnyโ default time-of-day restrictions โฐTSIRecvdCmdโ string โ default-โ program executed after TSI receipt, and yes it can drop calls ๐Unblockยน โ string โ default-โ forcefaxqto unblock the specified destination ๐Use2Dยน โ boolean โ defaultYesโ restrict or permit use of 2D-encoded fax data ๐UseJobTSIโ boolean โ defaultNoโ use job-specified TSI instead ofLocalIdentifier๐UseJobTagLineโ boolean โ defaultYesโ allow use of job-specified Tagline instead ofTagLineFormat๐ท๏ธUUCPLockModeยฒ โ octal โ default0444โ protection mode for UUCP lock files ๐UUCPLockDirยฒ โ string โ defaultsee belowโ UUCP lockfile directory ๐UUCPLockTimeoutยฒ โ integer โ default30โ time before removing a stale UUCP lockfile โฑ๏ธUUCPLockTypeยฒ โ string โ defaultsee belowโ UUCP lockfile type ๐VGettyArgsโ string โ default-โ arguments passed to the voice getty program ๐ฃ๏ธWedgedCmdยน โ string โ defaultbin/wedgedโ program to run when the modem is wedged ๐ตModemAnswerCmdโ string โ defaultATAโ command for answering the phone ๐ModemAnswerAgainCmdโ string โ default<delay:50>ATAโ command for answer recovery ๐ModemAnswerDataBeginCmdโ string โ default-โ command for the start of an answered data call ๐พModemAnswerDataCmdโ string โ defaultATAโ command for answering a data call ๐ถModemAnswerDialCmdโ string โ defaultATAโ command for answering a dialed call ๐ฒModemAnswerFaxBeginCmdโ string โ default-โ command for the start of an answered fax call ๐ModemAnswerFaxCmdโ string โ defaultATAโ command for answering a fax call ๐จ๏ธModemAnswerResponseTimeoutโ integer โ default180000โ answer command timeout in ms โณModemAnswerVoiceBeginCmdโ string โ default-โ command for the start of an answered voice call ๐๏ธModemAnswerVoiceCmdโ string โ defaultATAโ command for answering a voice call โ๏ธModemATCmdDelayโ integer โ default0โ delay before sending the modem an AT cmd, in ms โฒ๏ธModemBaudRateDelayโ integer โ default10โ delay in ms after setting the baud rate ๐ขModemCEDCmdโ string โ defaultATAโ command to signal CED and start V.21 HDLC transmit ๐กModemClassQueryCmdโ string โ defaultAT+FCLASS=?โ command for querying modem services ๐ModemCNGCmdโ string โ defaultATDโ command to signal CNG and listen for V.21 HDLC ๐ModemCommaPauseTimeCmdโ string โ defaultATS8=2โ command for setting time to pause for ``,'' in dialing string โธ๏ธModemDialCmdโ string โ defaultATDT%sโ command for dialing, where%sis the number to dial ๐ModemDialResponseTimeoutโ integer โ default180000โ dialing command timeout in ms โณModemDoPhaseCDebugโ boolean โ defaultNoโ query modem responses during Phase C transmit ๐ModemDTRDropDelayโ integer โ default75โ delay in ms between DTR OFF and DTR ON โกModemEchoOffCmdโ string โ defaultATE0โ command for disabling command echo ๐ModemFlowControlโ string โ defaultXONXOFFโ DTE-DCE flow control scheme ๐ModemFrameFillOrderโ string โ defaultLSB2MSBโ bit order for HDLC frames ๐งฌModemHardFlowCmdโ string โ default-โ command for setting hardware flow control between DTE and DCE ๐งModemMinSpeedโ string โ default2400โ minimum acceptable transmit speed ๐ModemMfrQueryCmdโ string โ default-โ command for querying the modem manufacturer ๐ญModemModelQueryCmdโ string โ default-โ command for querying the modem model ๐ModemNoAutoAnswerCmdโ string โ defaultATS0=0โ command for disabling auto-answer ๐ModemNoAutoAnswerCmdDelayโ integer โ default0โ time in ms to pause after disabling auto-answer โธ๏ธModemNoDialtoneRetriesโ integer โ default1โ maximum number of attempts to get dialtone ๐ModemNoFlowCmdโ string โ default-โ command for disabling hardware flow control between DTE and DCE ๐ซModemOnHookCmdโ string โ defaultATH0โ command for placing the phone ``on hook'' ๐ดModemPageDoneTimeoutโ integer โ default180000โ page send/receive timeout in ms โณModemPageStartTimeoutโ integer โ default180000โ page send/receive timeout in ms โณModemRaiseATCommandsโ boolean โ defaultYesโ raise AT commands in configuration to upper-case ๐ModemRateโ integer โ default19200โ baud rate to use for DCE-DTE communication ๐ถModemReadyCmdsโ string โ default-โ additional final commands when resetting the modem ๐ModemRecvFillOrderโ string โ defaultsee belowโ bit order for received facsimile data ๐ฅModemRecvSuccessCmdโ string โ default-โ command to send after a successful reception โModemResetCmdsโ string โ default-โ additional commands when resetting the modem ๐ModemResetDelayโ integer โ default2600โ delay in ms after placing DTR ON โฒ๏ธModemResultCodesCmdโ string โ defaultATQ0โ command for enabling result codes ๐ModemRevQueryCmdโ string โ defaultsee belowโ command for querying modem firmware revision ๐ขModemSecondAnswerCmdโ string โ default-โ command to restart the answer process ๐ModemSendBeginCmdโ string โ default-โ command to send on establishing carrier ๐กModemSendFillOrderโ string โ defaultLSB2MSBโ bit order for sending facsimile data ๐คModemSetOriginCmdโ string โ default-โ command to set call origin information ๐ModemSetVolumeCmdโ string โ defaultsee belowโ commands for setting modem speaker volume level ๐ModemSetupAACmdโ string โ default-โ command for setting up adaptive answer ๐งModemSetupDCDCmdโ string โ default-โ command for setting up DCD handling ๐ModemSetupDTRCmdโ string โ default-โ command for setting up DTR handling ๐ModemSoftFlowCmdโ string โ default-โ command for setting software flow control between DTE and DCE ๐ModemSoftResetCmdโ string โ defaultATZโ command for doing a soft reset ๐ModemSoftResetCmdDelayโ integer โ default3000โ time in ms to pause after a soft reset โธ๏ธModemSoftRTFCCโ boolean โ defaultYesโ enable software-driven real-time fax compression conversion ๐๏ธModemTypeโ string โ defaultsee belowโ modem type ๐ModemVerboseResultsCmdโ string โ defaultATV1โ command for enabling verbose result codes ๐ฃ๏ธModemWaitForConnectโ boolean โ defaultNoโ force server to wait for ``CONNECT'' response on answer โณModemWaitTimeCmdโ string โ defaultATS7=60โ command for setting time to wait for carrier when dialing ๐FaxT1Timerโ integer โ default35000โ CCITT T.30 T1 timer in ms โฑ๏ธFaxT2Timerโ integer โ default7000โ CCITT T.30 T2 timer in ms โฑ๏ธFaxT4Timerโ integer โ default3100โ CCITT T.30 T4 timer in ms โฑ๏ธClass0Cmdโ string โ defaultAT+FCLASS=0โ Class 0: command to enter class 0 ๐Class1Cmdโ string โ defaultAT+FCLASS=1โ Class 1: command to enter class 1 1๏ธโฃClass1Cmdโ string โ defaultAT+FCLASS=1.0โ Class 1.0: command to enter class 1 ๐ซ (yes, same name again, it's giving duplicate but we don't make the rules ๐)Class1AdaptRecvCmdโ string โ default-โ Class 1/1.0: command for adaptive reception support ๐งClass10AutoFallbackโ boolean โ defaultYesโ Class 1.0: modem implements G3 fallback ๐Class1ColorJPEGSupportโ boolean โ defaultNoโ Class 1/1.0: to enable color JPEG fax support ๐Class1EnableV34Cmdโ string โ default-โ Class 1/1.0: command to enable V.34-fax support ๐Class1ECMCheckFrameLengthโ boolean โ defaultNoโ Class 1/1.0: require complete ECM frame lengths ๐Class1ECMSupportโ boolean โ defaultYesโ Class 1/1.0: enable T.30-A ECM support ๐ ๏ธClass1PersistentECMโ boolean โ defaultYesโ Class 1/1.0: to continue to correct while in ECM ๐Class1ECMFrameSizeโ integer โ default256โ Class 1/1.0: image frame size in ECM protocol ๐ฆClass1ExtendedResโ boolean โ default-โ Class 1/1.0: enable extended resolution support ๐ผ๏ธClass1ExpectedPageSizeโ integer โ default100000โ Class 1/1.0: expected page size in bytes ๐Class1HasRHConnectBugโ boolean โ defaultNoโ Class 1/1.0: modem can reportCONNECTincorrectly ๐Class1HasRMHookIndicationโ boolean โ defaultYesโ Class 1/1.0: modem reportsERRORcorrectly โClass1HFLOCmdโ string โ default-โ Class 1/1.0: command to set hardware flow control ๐งClass1FrameOverheadโ integer โ default4โ Class 1/1.0: extra bytes in a received HDLC frame ๐งฉClass1FRHNeedsResetโ boolean โ defaultNoโ Class1/1.0:+FRH=3command needs resetting sometimes ๐Class1FullDuplexTrainingSyncโ boolean โ defaultNoโ Class 1/1.0: to enable full-duplex during training sync ๐Class1GreyJPEGSupportโ boolean โ defaultNoโ Class 1/1.0: to enable grey JPEG fax support ๐ซ๏ธClass1HookSensitivityโ integer โ default0โ Class 1/1.0: times to ignore on-hook detection ๐Class1JBIGSupportโ string โ defaultsee belowโ Class 1/1.0: to enable monochrome JBIG fax support โซClass1MRSupportโ boolean โ defaultYesโ Class 1/1.0: enable 2-D MR support ๐งฌClass1MMRSupportโ boolean โ defaultYesโ Class 1/1.0: enable 2-D MMR support ๐งฌClass1NFLOCmdโ string โ default-โ Class 1/1.0: command to set no flow control ๐ซClass1PageLengthSupportโ integer โ default7โ Class 1/1.0: coded value for modem page length support ๐Class1PageWidthSupportโ integer โ default7โ Class 1/1.0: coded value for modem page width support ๐Class1RecvAbortOKโ integer โ default200โ Class 1/1.0: max wait in ms for ``OK'' after recv abort โณClass1RecvIdentTimerโ typeinteger, default40000โ Class 1/1.0: this is literally the max wait in ms for the initial ident frame, so give it a sec bestie โณโจClass1RestrictPoorDestinationsยนโ typeinteger, default0โ Class 1/1.0: restrict features for destinations with poor quality, no cap ๐ซ๐Class1RestrictPoorSendersโ typeinteger, default0โ Class 1/1.0: restrict features for senders with poor quality, fr fr ๐ตClass1RMPersistenceโ typeinteger, default2โ Class 1/1.0: how many times to attempt high-speed carrier recv, the way it just keeps trying ๐คClass1SendNSFโ typeboolean, defaultYesโ Class 1/1.0: whether or not to send NSF, it's giving yes energy โClass1SFLOCmdโ typestring, default-โ Class 1/1.0: command to set software flow control, iconic for flow control girlies ๐Class1PPMWaitCmdโ typestring, defaultAT+FTS=7โ Class 1/1.0: command to stop and wait before PPM, periodt โClass1PhaseBRecvTimeoutCmdโ typestring, default-โ Class 1/1.0: command to issue if Phase B receive times out, not me preparing for the worst ๐ญClass1ResponseWaitCmdโ typestring, default-โ Class 1/1.0: command to wait before TCF response, lowkey patient vibes ๐งClass1Resolutionsโ typeinteger, default0x7Fโ Class 1/1.0: bitmap of supported resolutions, the way it's hex and cute ๐ฅClass1RMQueryCmdโ typestring, defaultAT+FRM=?โ Class 1/1.0: command to query modem data reception rates, asking the modem what's tea โClass1TCFWaitCmdโ typestring, defaultAT+FTS=7โ Class 1/1.0: command to stop and wait before TCF, same energy as PPM wait ๐Class1TMQueryCmdโ typestring, defaultAT+FTM=?โ Class 1/1.0: command to query modem data transmission rates, transmission rates check โจClass1EOPWaitCmdโ typestring, defaultAT+FTS=9โ Class 1/1.0: command to stop and wait before EOP, wait before end of page, iconic ๐ฌClass1ModemHasDLEBugโ typeboolean, defaultNoโ Class 1/1.0: modem fails to double DLE in V.21, it's giving buggy modem energy ๐Class1MsgRecvHackCmdโ typestring, default""โ Class 1/1.0: command to avoid +FCERROR before image data, a little hack, we love to see it ๐Class1SSLFaxCertโ typestring, defaultetc/ssl.pemโ Class 1/1.0: PEM certificate file for SSL Fax, secure girlie ๐Class1SSLFaxClientTimeoutโ typeinteger, default5000โ Class 1/1.0: timeout waiting for client connection, don't leave me on read โฐClass1SSLFaxInfoโ typestring, default-โ Class 1/1.0: hostname and port number for SSL Fax, the info bestie ๐Class1SSLFaxProxyโ typestring, default-โ Class 1/1.0: hostname and port number for SSL Fax Proxy, proxy main character energy ๐Class1SSLFaxSupportโ typeboolean, defaultYesโ Class 1/1.0: support for SSL Fax, yes we support it ๐Class1SSLFaxServerTimeoutโ typeinteger, default2000โ Class 1/1.0: timeout waiting for server connection, server better hurry ๐โโ๏ธClass1TCFRecvHackCmdโ typestring, default""โ Class 1/1.0: command to avoid +FCERROR before TCF, another hack, we stay hacking ๐Class1TCFMaxNonZeroโ typeinteger, default10โ Class 1/1.0: max% of non-zero data in good TCF, keep it lowkey zero ๐Class1TCFMinRunโ typeinteger, default1000โ Class 1/1.0: minimum zero run in good TCF, a nice long run of zeros ๐Class1TCFMinRunECMModโ typeinteger, default2โ Class 1/1.0: modify minimum zero run in ECM by this factor, math but make it cute โจClass1TCFRecvTimeoutโ typeinteger, default4500โ Class 1/1.0: max wait (ms) for TCF, don't wait forever โณClass1TMConnectDelayโ typeinteger, default0โ Class 1/1.0: delay between +FTM CONNECT and data transmission, zero delay, we move fast ๐Class1SwitchingCmdโ typestring, defaultAT+FRS=7โ Class 1/1.0: command to ensure silence after HDLC reception, shhh ๐คซClass1ValidateV21Framesโ typeboolean, defaultNoโ Class 1/1.0: check FCS against received frames, validation era ๐ฏ
Class2Cmdโ typestring, defaultAT+FCLASS=2โ Class 2: command to enter class 2/2.0, come through class 2 ๐ชClass2AbortCmdโ typestring, defaultAT+FKโ Class 2: command to abort active session, abort mission ๐Class2APCmdโ typestring, defaultAT+FAPโ Class 2: enable support for sending and receiving SUB, SEP, and PWD frames, all the frames ๐Class2APQueryCmdโ typestring, defaultAT+FAP=?โ Class 2: query capabilities for sending and receiving SUB, SEP, and PWD frames, ask and you shall receive โClass2BORCmdโ typestring, defaultAT+FBOR=0โ Class 2: command to setup bit order, bits in order, periodt ๐ขClass2BUGCmdโ typestring, defaultAT+FBUG=1โ Class 2: command to enable HDLC frame tracing, tracing the frames like a detective ๐ต๏ธโโ๏ธClass2CIGCmdโ typestring, defaultAT+FCIGโ Class 2: command to set polling identifier, who's polling? ๐Class2CRCmdโ typestring, defaultAT+FCR=1โ Class 2: command to enable receive capability, we can receive, yes we can ๐ฅClass2CQCmdโ typestring, default-โ Class 2: command to setup copy quality parameters, copy quality matters ๐Class2CQQueryCmdโ typestring, defaultAT+FCQ=?โ Class 2: command to query modem copy quality capabilities, asking about quality ๐จClass2DCCCmdโ typestring, defaultAT+FDCCโ Class 2: command to set modem capabilities, capabilities set โClass2DCCQueryCmdโ typestring, defaultAT+FDCC=?โ Class 2: command to query modem capabilities, what can you do? ๐คClass2DisableV17Cmdโ typestring, default-โ Class 2: command to disable V.17 support, bye V.17 ๐Class2DISCmdโ typestring, defaultAT+FDISโ Class 2: command to set session parameters, session tea โClass2DDISCmdโ typestring, default-โ Class 2: command to set session parameters before dialing, pre-dial prep ๐Class2ECMTypeโ typestring, default``2''โ Class 2: ECM specification type to follow, following the spec ๐Class2HexNSFโ typeboolean, defaultYesโ Class 2: parse NSF strings as hex values, hex girlie ๐ขClass2HFLOCmdโ typestring, default-โ Class 2: command to set hardware flow control, hardware flow, we love ๐Class2LIDCmdโ typestring, defaultAT+FLIDโ Class 2: command to set local identifier string, local ID, main character ๐ชชClass2MINSPCmdโ typestring, defaultAT+FMINSPโ Class 2: command to set minimum transmit speed, minimum speed but still cute ๐ขClass2NFLOCmdโ typestring, default-โ Class 2: command to set no flow control, no flow, no problem ๐ซClass2PACmdโ typestring, defaultAT+FPAโ Class 2: set polling address string, address bestie ๐Class2PHCTOCmdโ typestring, defaultAT+FPHCTO=30โ Class 2: command to set Phase C timeout parameter, Phase C timeout, set it โฒ๏ธClass2PTSCmdโ typestring, defaultAT+FPTSโ Class 2: command to set received page status, page status update ๐Class2PWCmdโ typestring, defaultAT+FPWโ Class 2: set password string, password protected ๐Class2RecvDataTriggerโ typestring, default``\21''โ Class 2: character to send to trigger recv, trigger the receive ๐ฏClass2RELCmdโ typestring, default-โ Class 2: command to enable byte-aligned EOL codes, EOL codes aligned ๐ซClass2SACmdโ typestring, defaultAT+FSAโ Class 2: set destination subaddress string, subaddress set ๐ฌClass2SendRTCโ typeboolean, defaultNoโ Class 2: append RTC to page data on transmit, RTC on transmit, maybe later โฐClass2SFLOCmdโ typestring, default-โ Class 2: command to set software flow control, software flow control, iconic ๐ปClass2SPLCmdโ typestring, defaultAT+FSPLโ Class 2: command to set polling request, polling request, periodt ๐Class2TBCCmdโ typestring, defaultAT+FTBC=0โ Class 2: command to enable stream mode, stream mode activated ๐Class2UseLineCountโ typeboolean, defaultNoโ Class 2: use the line count from the firmware decoder, line count from firmware, okay ๐Class2UseHexโ typeboolean, defaultNoโ Class 2: parse capabilities strings as hex values, hex parsing, maybe later ๐ฃClass2XmitWaitForXONโ typeboolean, defaultYesโ Class 2: wait for XON before sending facsimile data, wait for XON, patient bestie โ
Class2Cmdโ typestring, defaultAT+FCLASS=2.0โ Class 2.0: command to enter class 2/2.0, class 2.0 entrance ๐ชClass2AbortCmdโ typestring, defaultAT+FKSโ Class 2.0: command to abort active session, abort but class 2.0 style ๐Class2APCmdโ typestring, defaultAT+FAPโ Class 2.0: enable support for sending and receiving SUB, SEP, and PWD frames, frames galore ๐Class2APQueryCmdโ typestring, defaultAT+FAP=?โ Class 2.0: query capabilities for sending and receiving SUB, SEP, and PWD frames, query the frames โClass2BORCmdโ typestring, defaultAT+FBO=0โ Class 2.0: command to setup bit order, bit order setup, periodt ๐ขClass2BUGCmdโ typestring, defaultAT+FBU=1โ Class 2.0: command to enable HDLC frame tracing, tracing frames, detective mode ๐ต๏ธโโ๏ธClass2CIGCmdโ typestring, defaultAT+FPIโ Class 2.0: command to set polling identifier, polling ID, who dis? ๐Class2CRCmdโ typestring, defaultAT+FCR=1โ Class 2.0: command to enable receive capability, receive capability, yes ๐ฅClass2CQCmdโ typestring, default-โ Class 2.0: command to setup copy quality parameters, copy quality, important ๐Class2CQQueryCmdโ typestring, defaultAT+FCQ=?โ Class 2.0: command to query modem copy quality capabilities, query quality ๐จClass2DCCCmdโ typestring, defaultAT+FCCโ Class 2.0: command to set modem capabilities, set capabilities โClass2DCCQueryCmdโ typestring, defaultAT+FCC=?โ Class 2.0: command to query modem capabilities, query capabilities ๐คClass2DisableV17Cmdโ typestring, default-โ Class 2.0: command to disable V.17 support, bye V.17 again ๐Class2DisableV34Cmdโ typestring, default-โ Class 2.0: command to disable V.34 support, bye V.34 ๐Class2DISCmdโ typestring, defaultAT+FISโ Class 2.0: command to set session parameters, session parameters, set them โClass2ECMTypeโ typestring, default``2.0''โ Class 2.0: ECM specification type to follow, following the spec 2.0 ๐Class2HexNSFโ typeboolean, defaultYesโ Class 2.0: parse NSF strings as hex values, hex parsing, yes ๐ขClass2HFLOCmdโ typestring, defaultAT+FLO=2โ Class 2.0: command to set hardware flow control, hardware flow control, iconic ๐Class2JBIGSupportโ typestring, defaultsee belowโ Class 2.0: to enable monochrome JBIG fax support, JBIG support, see below bestie ๐Class2JPEGSupportโ typeboolean, defaultNoโ Class 2.0: use modem JPEG support, JPEG support, maybe later ๐ทClass2LIDCmdโ typestring, defaultAT+FLIโ Class 2.0: command to set local identifier string, local ID, main character ๐ชชClass2MINSPCmdโ typestring, defaultAT+FMSโ Class 2.0: command to set minimum transmit speed, minimum transmit speed ๐ขClass2NFLOCmdโ typestring, defaultAT+FLO=0โ Class 2.0: command to set no flow control, no flow control, periodt ๐ซClass2NRCmdโ typestring, defaultAT+FNR=1,1,1,1โ Class 2.0: command to set negotiation message reporting, negotiation messages, report them ๐ขClass2PACmdโ typestring, defaultAT+FPAโ Class 2.0: set polling address string, polling address ๐Class2PHCTOCmdโ typestring, defaultAT+FCT=30โ Class 2.0: command to set Phase C timeout parameter, Phase C timeout, set it โฒ๏ธClass2PIECmdโ typestring, defaultAT+FIE=0โ Class 2.0: command to set procedure interrupt handling, procedure interrupt handling, handle it ๐ ๏ธClass2PWCmdโ typestring, defaultAT+FPWโ Class 2.0: set password string, password, protected ๐Class2PTSCmdโ typestring, defaultAT+FPSโ Class 2.0: command to set received page status, page status, set it ๐Class2PTSQueryCmdโ typestring, defaultAT+FPS?โ Class 2.0: command to query received page status, query page status โClass2RecvDataTriggerโ typestring, default``\22''โ Class 2.0: character to send to trigger recv, trigger the receive ๐ฏClass2RELCmdโ typestring, default-โ Class 2.0: command to enable byte-aligned EOL codes, EOL codes, aligned ๐ซClass2RTFCCโ typeboolean, defaultNoโ Class 2.0: enable real-time fax compression conversion, real-time compression conversion, fancy โจClass2SACmdโ typestring, defaultAT+FSAโ Class 2.0: set destination subaddress string, subaddress, set it ๐ฌClass2SendRTCโ typeboolean, defaultNoโ Class 2.0: append RTC to page data on transmit, RTC on transmit, maybe later โฐClass2SFLOCmdโ typestring, defaultAT+FLO=1โ Class 2.0: command to set software flow control, software flow control ๐ปClass2SPLCmdโ typestring, defaultAT+FSPโ Class 2.0: command to set polling request, polling request, periodt ๐Class2TBCCmdโ typestring, defaultAT+FPP=0โ Class 2.0: command to enable stream mode, stream mode, activated ๐Class2UseLineCountโ typeboolean, defaultNoโ Class 2.0: use the line count from the firmware decoder, line count from firmware ๐Class2UseHexโ typeboolean, defaultNoโ Class 2.0: parse capabilities strings as hex values, hex parsing, maybe later ๐ฃPagerSetupCmdsโ typestring, default-โ commands for setting up modem for a pager call, pager call setup, iconic ๐PagerMaxMsgLengthinteger โ default128โ the longest a text message can be, bestie.IXOServicestring โ defaultPGโ IXO: the service identification string.IXODeviceIDstring โ default1โ IXO: the device identification string.IXOMaxUnknowninteger โ default3โ IXO and UCP: how many unknown responses we put up with before we abort. ๐IXOIDProbeinteger โ default2โ IXO: time between sending\rduring the ID sequence, in secs.IXOIDTimeoutinteger โ default20โ IXO: max time to wait for theID=response, in secs.IXOLoginRetriesinteger โ default3โ IXO: max attempts to log in.IXOLoginTimeoutinteger โ default15โ IXO: max time to complete login, in secs.IXOGATimeoutinteger โ default30โ IXO: max time to wait for the Go-Ahead response, in secs.IXOXmitRetriesinteger โ default3โ IXO and UCP: max retries to send a text msg block.IXOXmitTimeoutinteger โ default15โ IXO and UCP: max time to transmit a text msg block.IXOAckTimeoutinteger โ default30โ IXO: max time to wait for a msg block ack, in secs.
๐ SERVER-ORIENTED CONFIGURATION PARAMETERS ๐
Okay so these ones? These are the ones that run the whole fax server's general vibe. The big-picture settings. Let's get into it, no cap. ๐ซถ
AdaptiveAnswerโ Controls whether we do the adaptive answering thing or not. Adaptive answering = an incoming call gets answered in multiple ways, following the list you put inAnswerRotary. So like, if adaptive answering is on andAnswerRotarysaysfax data, then an incoming call gets answered first as fax usingModemAnswerFaxCmd, and then, if that fails, as data usingModemAnswerDataCmd. If adaptive answering is not enabled, calls just get answered with the appropriateModemAnswer*Cmdparameter (normallyModemAnswerCmdfor unattended operation). Heads up though โ adaptive answering depends on a lot of factors, and those factors limit how useful it actually is. When calls get answered as fax first, it typically only works with a Class 1 modem, because it matters that the whole answering-as-fax sequence finish fast enough that the follow-up data answer happens before the caller times out and hangs up the phone. (That's whyClass1RecvIdentTimershould be set shorter thanFaxT1Timer.) Also, sometimes you gotta arrange for the phone to go on-hook between successive answers โ usually done by sticking the right command at the start of the second and subsequentModemAnswer*Cmds. โจAdminGroupโ Tells PAM which user group is allowed to administer the fax server. Only useful if the server was compiled with PAM enabled.AllowIgnoreModemBusyยน โ Whether or not to honor job requests that say "ignore modem busy status" when allocating jobs to a modem. The intended use here is letting configurations where aDynamicConfigprogram can send a fax to an incoming caller (which is contrary to T.30 protocol for sending or polling).AnswerRotaryโ The sequence of answering techniques the server shouldrotate throughwhen answering incoming calls. The techniques are:faxโ answer a fax calldataโ answer a data callvoiceโ answer a voice callexternโ use the vgetty application to answer a callanyโ answer a call of any/unknown type
When a call isn't answered successfully, the server advances the rotary to the next specified answering technique. If AdaptiveAnswer is enabled, the server will try all the answering techniques for each incoming call. Otherwise, the rotary advances between unsuccessful phone calls. So like, if AdaptiveAnswer is disabled and AnswerRotary is fax data, calls get answered as fax until the first call comes in that doesn't look like it's from a fax machine; after that, calls get answered as if they came from a data modem until the next unsuccessful call; and after that they go back to being answered as fax. Only the first three techniques listed are used โ any extra ones are (silently) ignored. See also AnswerBias. ๐
AnswerBiasโ The index into theAnswerRotarylist that the server should rotate the list to after each successful incoming phone call. List indices start numbering at zero. Example: ifAnswerRotaryisfax dataandAnswerBiasis1, then after each successful inbound call, the next call gets answered as data.- **
AreaCodeยฒ โ The local area code where the facsimile modem lives. This value gets passed to the dial string rules, which are used (for example) to formulate canonical phone numbers for dialing โ seeDialStringRulesbelow. - **
AuditHookยน โ Specifies a program command and an interest specification saying which events (as described infaxwatch(8C)) should trigger the execution of that program. For example, this configuration:
AuditHook: "bin/hook: J*S*M*R*"
would cause bin/hook to be executed upon every event. The arguments passed to the hook program are respectively <class>, <mask>, <id>, and optionally [info] whereโฆ
<class> = JOB | SEND | MODEM | RECV
<mask> = the specific event
<id> = id of the job/modem with which the event is associated
[info] = additional information
BadPageHandlingMethodโ (Class 1/1.0 only) Specifies how to react to a bad page received from the remote sender: one ofRTN,DCN, orRTN-SAVE.
If a page is received in non-ECM mode with unacceptable quality according to PercentGoodLines or MaxConseutiveBadLines, then it can be a little bit hard to tell the sender about the problem. Historically, HylaFAX has assumed that signalling RTN to the sender will get the job done. But some senders literally cannot retransmit pages, and to reduce burden they treat an RTN signal as a receipt confirmation and just move on to the next page without notifying the sending user that there might be a readability problem on the receive-end. (The assumption there being that the receiving user will tell the sending user if there actually is a readability problem.)
A setting of RTN is the historic behavior, and it assumes an RTN signal is enough to get the sender to retransmit or otherwise be informed of a potential readability problem on the receive-end. The previously-received page data is marked to be overwritten by the next page data received from the sender.
A setting of DCN tells HylaFAX to transmit a DCN signal in response to the post-page message, which should trigger a call abortion by the sender. This should clearly indicate a problem in page readability to the sender, although receiving any following pages in a later call can't be guaranteed. ๐ญ
A setting of RTN-SAVE more closely approximates how other fax receivers (especially fax machines) behave. It causes HylaFAX to send the RTN signal, but it saves the previously received page data and puts the next transmitted page data in another page. This is the default setting. However, it could result in multiple copies of the same page image being saved in the same file โ if the sender does indeed retransmit the unacceptable pages during the same call.
- **
BatchLogsยน โ When sending or receiving multiple documents (denoted by EOM), this value determines if the session logs span the entire batch or, if set tono, only contain a single document. CallIDPatternโ A string that identifies the caller's identity in any call identification messages the modem provides (like Caller*ID or DNIS/DID). The specified string is compared against any unrecognized status messages received from the modem beforeModemAnswerCmdis sent to the modem. If there's a match, then the remainder of the message is returned asCallIDnwhere n corresponds to the n'th instance that thisCallIDPatternis from the top in the modem configuration file. For example, for the ZyXEL U-1496 this parameter would be set toCallIDPattern: "CALLER NAME: "(note the trailing space). If more than one message matches between instances of "RING" messages, then the message remainders are concatenated.
The special CallID value of "SHIELDED_DTMF" is used together with ModemRingResponse and CallIDAnswerLength. After executing ModemRingResponse, HylaFAX will expect DTMF data (usually DLE-shielded) for CallIDn until CallIDAnswerLength is reached. Note that if the modem is in voice mode to hear these DTMF digits, then it must be returned to fax mode in the ModemAnswerCmd. And to keep this feature from losing incoming fax calls: if fax sender CNG is detected while waiting for DTMF, or if ten seconds elapse without sufficient DTMF, then the remaining expected digits will be populated by whitespace, which triggers fax answering. ๐ฆ
For example, the following settings will cause HylaFAX to enter voice mode and go off-hook when a RING is detected. It will then expect four DTMF digits (presumably for routing), and then it will pause for 100 ms before returning to fax mode and answering the call.
ModemRingResponse: AT+FCLASS=8;H1
CallIDPattern: SHIELDED_DTMF
CallIDAnswerLength: 4
ModemAnswerCmd: <delay:100>AT+FCLASS=1;A
For modems that don't support AT+FCLASS=8 (like some USR modems) this may be an appropriate equivalent:
ModemRingResponse: "AT#CLS=8\nAT#VLS=4\nATA"
CallIDPattern: SHIELDED_DTMF
CallIDAnswerLength: 4
ModemAnswerCmd: "<delay:100>AT+FCLASS=1\nATA"
Multiple entries of CallIDPattern are used together in one modem configuration file in order to capture multiple CallID responses. For example, the following settings would capture "NDID" responses from the modem as CallID1, "NMBR" responses from the modem as CallID2, "NAME" responses as CallID3, and it would trigger ModemAnswerCmd whenever CallID1 or CallID2 were longer than 7 or 10 characters, respectively.
CallIDPattern: "NDID="
CallIDAnswerLength: 7
CallIDPattern: "NMBR="
CallIDAnswerLength: 10
CallIDPattern: "NAME="
Okay bestie, but listen โ this example is only an example, and it probably would cause unexpected results. ๐ Here's why: pattern-matching ends when ModemAnswerCmd is sent to the modem. So if "NDID", "NMBR", and "NAME" responses came from the modem in that order, and the "NDID" response was at least 7 characters long, then ModemAnswerCmd would be sent to the modem immediately following the "NDID" response, and the "NMBR" and "NAME" responses would be ignored. ๐ Generally only one CallIDAnswerLength item should be in a modem configuration file.
Call identification data is usually only sent once by the telco or PBX, and the timing of its arrival varies upon the telco or PBX and the type of line. If HylaFAX is configured to answer via RingsBeforeAnswer prior to the arrival of the data, then all CallID values will be null. ๐ญ For example, on US analog lines, caller-ID data is usually sent between RINGs 1 and 2. In this situation, RingsBeforeAnswer should be set to `2` or greater. (iykyk)
โจ CallIDAnswerLength โจ
An integer indicating the minimum number of characters in a CallID matching the previous CallIDPattern to be received when ModemAnswerCmd is sent to the modem irrespective of any RingsBeforeAnswer value greater than zero. This allows the answering of calls which deliver CID/DID data but not RINGs. ๐ For example,
CallIDAnswerLength: ``7''
would cause the call to be answered when CallID2 reached a length of seven digits. A value of zero for CallIDAnswerLength disables this feature.
๐
CallIDDisplay ๐
Whether or not to display the CallIDPattern match in the modem status line. ๐
๐ CallIDLabel ๐
The label to use in the presentation of any CallIDPattern match. (For example, when CallIDDisplay or CallIDRecord indicate to display or record the match.) ๐ท๏ธ
๐ฆ CallIDRecord ๐ฆ
Whether or not to record the CallIDPattern match in the received image file. ๐
โญ CallIDType โญ
Identifies the type of indicator in the associated CallIDPattern match. The special type `calling-number` enables the faxgetty process to utilize an associated entry in the info database for items such as senderDataSent, senderDataMissed, senderConfusesRTN, senderConfusesPIN, senderFumblesECM, senderHasV17Trouble, and senderSkipsV29. See hylafax-info(5F).
๐ ClocalAsRoot ๐
Control whether operations that set the CLOCAL bit on the modem device special file are done with the effective user-ID set to the super-user or the `fax` user. By default such operations are done as the fax user, except under IRIX where they are done as the super-user (because IRIX disallows manipulation of CLOCAL by anyone but the super-user). ๐
๐ฅ ContCoverCmdยน ๐ฅ
The program to invoke to generate a continuation cover page; see ContCoverPage and mkcover(8C).
๐ฅ ContCoverPageยน ๐ฅ
A template file to use in creating continuation cover pages. If this parameter is non-null, then the server will pass the filename to the command specified by ContCoverCmd to generate cover pages for outbound jobs that are continued after protocol errors. These cover pages identify the receiver and indicate that the document is a continued transmission. If this parameter is not specified or is null, then the server will not generate continuation cover pages. The specified pathname must be relative to the top of the fax server's spooling area. ๐
๐ CountryCodeยฒ ๐
The local country code in which the facsimile modem resides. As for AreaCode, this value is passed to the dial string rules for use in formulating canonical phone numbers for dialing (among other things.) โ๏ธ
๐ง DeviceMode ๐ง
The file protection mode that the server should set for the modem device file. Note that this value is given in octal. The default value of 0600 implies that only the facsimile user (usually uucp) can access the modem. See also chmod(2).
๐ DialStringRulesยฒ ๐
The pathname of the file that holds the rules for processing user-specified dial strings; c.f. dialrules(5F). The specified pathname must be relative to the top of the fax server's spooling area; e.g. etc/dialrules.
๐ถ DistinctiveRings ๐ถ
Modern distinctive ring support on most modems indicates the ring cadence rather than the older style of `RING1`, `RING2`, etc. To indicate the ring cadence, DRingOn and DRingOff values are presented by the modem to the faxgetty process. The modem indicates the entire cadence between `RING` indications Like this:
RING
DROF=40
DRON=8
DROF=4
DRON=8
RING
The corresponding DistinctiveRings parameter for this ring cadence would be:
DistinctiveRings: F-8-4-8
where `F` tells the faxgetty process that the ring cadence is for a facsimile (`V` for voice and `D` for data), and the other values describe the ring cadence with leading and ending DRingOff values ignored. Multiple ring cadences are indicated by delimiting them with commas in this fashion:
DistinctiveRings: V-20,F-8-4-8,D-4-2-4-8
๐ DRingOff ๐
A string that identifies the `off` value in any distinctive ring cadence, for example `DROF=`. See also DRingOn and DistinctiveRings.
๐ DRingOn ๐
A string that identifies the `on` value in any distinctive ring cadence, for example `DRON=`. See also DRingOff and DistinctiveRings.
๐ง DynamicConfig ๐ง
The pathname of the optional program, e.g. `etc/localid`, that makes dynamic configuration changes, i.e., to LocalIdentifier, based on device ID and call identification. The program is passed those values as the parameters ($1 = device id, $2 = CallID1, $3 = CallID2, $4 = CallID3, ...), when answering an incoming call. The program can then perform local processing as desired to send on standard output the configuration items to change in a `parameter:value` format, i.e. `LocalIdentifier: +1.800.555.1212`. If there are multiple parameters to be changed, then each item must be on its own line. This is commonly used to dynamically alter the local identification of systems which use DID/DNIS, but it can also be used to allow different modem configurations for different senders. This program can also set the RejectCall options to cause the current call to be rejected instead of answered. Note that this file must be marked as executable by the faxgetty process. โ ๏ธ
๐ EGettyArgs ๐
A string that indicates whether or not the server should use an an external getty application (egetty) to perhaps deduce and possibly handle an incoming call. If the string value is not null, then it is interpreted as a set of arguments to pass to egetty. Before supplying the arguments, the string is first scanned for `%`-escape sequences: any appearance of `%l` is replaced with the tty name and any appearance of `%s` is replaced with the serial port speed (in decimal). Any appearance of escaped numbers 1 through 9 (`%1` through `%9`) are replaced by the match to the corresponding CallIDPattern, if present. The `%` character can be specified with `%%`. If the EGettyArgs parameter is not specified in the configuration file or if the string value is null, then `extern` connections will be rejected. ๐ซ Note that in addition to the specified command line arguments, egetty is invoked with its standard input, output, and error descriptors directed to the controlling tty device.
When egetty finishes up, bestie, we gotta read its exit status, because that number is literally the whole plot twist โ it tells us what to do with the call. Here's the tea ๐ต:
- Exit status
0โ unknown call type, no clue what this is. Handle the call likeegettywas never even involved, periodt. - Exit status
1โ it's a data connection! So use thegetty(8C)program to handle it if it's configured (peepGettyArgs). If it's not configured, we just assume the call got answered and the data connection is up, and we keep it moving by sendingModemAnswerDataBeginCmdto the modem (if that's configured, obvi). - Exit status
2โ a fax connection is established ๐, so we proceed by issuingModemAnswerFaxBeginCmdto the modem (if configured). - Exit status
3โ it's a voice call ๐, so use thevgettyprogram if it's configured (seeVGettyArgs). If not, we assume the call was answered and the voice connection is established, and we proceed by issuingModemAnswerVoiceBeginCmdto the modem (if configured). - Exit status
4โ this one's an ERROR condition. The session gets terminated. Bye. - Exit status
5โegettyhandled the whole call by itself, it's not an error, and the session is considered terminated. Clean exit, slay โจ. - Exit statuses
11,12, and13โ these are the same as1,2, and3respectively, EXCEPT they mean the call hasn't been answered yet with a data, fax, or voice connection. So ifGettyArgsisn't configured,ModemAnswerDataCmdgets issued to the modem first for an exit status of11;ModemAnswerFaxCmdgets issued first for12; and ifVGettyArgsisn't configured,ModemAnswerVoiceCmdgets issued first for13.
๐ FAXNumber
The phone number that belongs to the facsimile modem. This string gets used to build the Transmitter Subscriber Identification (TSI) and Caller Subscriber Identification (CSI) info we send to remote machines โ unless the LocalIdentifier parameter is explicitly set, in which case that wins. The FAXNumber is also what names the session log file where incoming-call info gets recorded; check hylafax-log(5F) for that. And if this phone number isn't fully qualified, then the values of AreaCode and CountryCode step in to generate the transmitted CSI and TSI. ๐ซถ
โจ Includeยฒ
Include the config file you name, as if it were literally part of this config file. Copy-paste energy, but make it official.
๐ InternationalPrefixยฒ
The string you use to place an international phone call. In the United States, this is ``011''. This string gets passed along to the dial string rules.
๐ JobControlCmdยน
The command to invoke that provides Job Control information for a job. See jobcontrol(8C).
โณ JobReqBusy
The delay, in seconds, to wait before retrying a job whose dialing attempt failed with a ``BUSY'' status result.
๐ JobReqDataConn
The delay in seconds to wait before retrying a facsimile job whose dialing attempt failed because a data modem picked up the phone. Rude, honestly.
๐ณ๏ธ JobReqNoAnswer
The delay in seconds to wait before retrying a job whose dialing attempt failed with a ``NO ANSWER'' status result.
๐ต JobReqNoCarrier
The delay in seconds to wait before retrying a job whose dialing attempt failed with a ``NO CARRIER'' status result.
๐ JobReqNoFCon
The delay in seconds to wait before retrying a facsimile job whose dialing attempt failed because the initial facsimile protocol handshake flopped (aka no ``+FCON:'' result came back from a Class 2/2.0 modem).
๐ JobReqOtherยฒ
The delay in seconds to wait before retrying a job that failed for a reason not already covered by one of the JobReq* parameters. The catch-all, the safety net, the bestie who covers your shift.
๐งฌ JobReqProto
The delay in seconds to wait before retrying a facsimile job that failed because of a fax protocol error.
๐ฅ JobRetryBusy
The number of times to redial a phone number after getting a ``BUSY'' result code, when the number has not been successfully dialed before.
๐ธ JobRetryDataConn
The number of times to redial a phone number after the dialing attempt failed because a data modem answered the phone, when the number has not been successfully dialed before.
๐ญ JobRetryNoAnswer
The number of times to redial a phone number after the dialing attempt failed because of NO ANSWER, when the number has not been successfully dialed before.
๐ซ JobRetryNoCarrier
The number of times to redial a phone number after the dialing attempt failed because of NO CARRIER, when the number has not been successfully dialed before.
So here's the vibe: in normal operation the fax server treats this result code as meaning a facsimile modem/machine did not answer the phone, and it rejects the transmit job. Why? To avoid repeatedly dialing wrong phone numbers โ and this whole thing depends on the modem being able to tell the difference between no carrier and no answer. But plot twist: some modems genuinely cannot reliably distinguish between no carrier and no answer, or when you tell them to, they don't identify a busy signal correctly. For those modems you might find it necessary to bump up this parameter's value to compensate.
โ ๏ธ It is strongly recommended, however, that you do NOT set this value to a large number. Fr fr. Do not do it. ๐
๐ JobRetryOther
The number of times to redial a phone number after the dialing attempt failed for a reason not already covered by one of the other JobRetry* parameters, when the number has not been successfully dialed before.
๐ GettyArgs
A string that says whether or not the server should invoke the getty(8C) program in response to an incoming call from a data modem.
If the string value is not null, then it's interpreted as a set of arguments to pass to the getty program. Before the arguments get supplied, the string is first scanned for ``%''-escape sequences:
- any appearance of ``%l'' gets replaced with the tty name
- any appearance of ``%s'' gets replaced with the serial port speed (in decimal)
- any appearance of escaped numbers 1 through 9 (
%1'' through%9'') gets replaced by the match to the correspondingCallIDPattern, if present - the
%'' character itself can be specified with%%''
If the GettyArgs parameter isn't specified in the configuration file, or if the string value is null, then data connections get rejected. Bye bestie ๐.
Also note โ on top of the command line arguments you specify, the getty program is invoked with its standard input, output, and error descriptors directed to the controlling tty device. Iykyk.
๐ LocalIdentifier
The local station identification string to use when transmitting TSI and CSI strings (see FAXNumber above).
NB: while this string may contain any printable ASCII characters, beware that CCITT T.30 specifies a restricted character set, and some fax modems and machines may reject or not display non-conforming strings. So maybe don't get too creative, babe.
If the local identifier isn't specified, a canonical form of the FAXNumber is used instead.
๐ LockDataCalls
Hold the UUCP lockfile during the time an inbound data call is being processed by the external getty program. If this is disabled, then the lockfile gets removed just before the getty program is invoked.
โ ๏ธ But note: doing that introduces a race condition โ an outbound program may sneak in and take control of the modem after the inbound call has been accepted, but before the getty program has started up and installed its own lockfile. Sneaky sneaky. ๐
๐๏ธ LockVoiceCalls
Hold the UUCP lockfile during the time an inbound data call is processed by the external voice getty program. If this is disabled, then the lockfile gets removed just before the voice getty program is invoked.
โ ๏ธ Same warning, same energy: this introduces a race condition where an outbound program may sneak in and grab the modem after the inbound call has been accepted, but before the voice getty program has started up and installed its own lockfile.
๐ LogFacilityยฒ
The symbolic name for the syslog(3) facility to use when logging error messages and informational/debugging messages requested through the ServerTracing parameter. The list of facility names is standardized โ you'll find it in the system include file <syslog.h> โ and comparisons are case-insensitive.
๐ LogCalls
Log all incoming calls into xferfaxlog as CALL records. This gives you a quick check of all incoming calls, whether the fax completed or not, all unified and tidy with the other fax logs. Chef's kiss. ๐
๐ LogFileMode
The file protection mode to use when creating files that hold session logs. Heads up: this value is given in octal. The default value of 0600 means the log files aren't generally accessible โ which matters a LOT if sensitive info like calling card access codes is getting logged. If log files are meant to be publicly accessible, you may set this value to, for example, 0644. See also chmod(2).
๐ฅ LogRecv
Log all received faxes into xferfaxlog as RECV records.
๐ค LogSend
Log all sent faxes into xferfaxlog as SEND records.
โ๏ธ LongDistancePrefixยฒ
The string to use to place a long distance phone call. In the United States, this is ``1''.
MaxConcurrentCallsยน
okay so this one is the default value for the max number of jobs for the same destination that get processed at the same time. so basically it's the ceiling on how many phone calls can be happening concurrently to one destination. ๐
ngl unless literally all of your fax destinations have multiple fax lines using the same fax number per destination, you should just leave this at the default of 1 and handle the exceptions with the JobControl mechanism instead. lowkey the move.
BUT for high-throughput applications there's a special value of "0" you can use โ that tells the server to allow limitless concurrent calls to the same destination, provided that all existing calls to that destination have connected. and in that setup, if a busy signal happens on a concurrent call, the various "dials" counters are not incremented, and further concurrent calls get temporarily stalled. ๐ซถ
MaxConcurrentPrepsยน
the maximum number of job preparations that may be run simultaneously. its whole job is to stop the scheduler from kicking off so many job preparations that system resources get constrained in the operations. protect the vibes, protect the CPU. โจ
MaxBatchJobsยน
the maximum number of jobs to batch together in a single call. that's it, that's the whole thing. ๐
MaxConsecutiveBadLines
the maximum number of consecutive erroneous rows of image data that the server will receive before it decides a page has unacceptable copy quality. ๐ซ
set this to zero and the server justโฆ won't check the quality of received facsimile at all. facsimile received with error-correction do not have copy quality checking performed. see also PercentGoodLines.
MaxDialsยน
the default value for the max number of times the server will place a call for an outbound job. this can be overridden by rules in the JobControl mechanism. ๐
heads up bestie: this feature is completely distinct from the identically-named feature in the client-server communication, and jobs triggering these limits get handled differently for each one. see also MaxTries.
MaxProxyJobsยน
the maximum number of jobs that can be concurrently delivered to a proxy for transmission. this limit exists so proxy use doesn't overwhelm the available system processes. ๐ธ
MaxRecvPages
the maximum number of pages the server will accept in a received facsimile before it aborts the session. ๐
MaxSendPagesยน
the default value for the maximum number of pages the server will permit in a transmitted facsimile. outbound jobs that exceed this limit get rejected, no negotiation. this value may be overridden by rules in the JobControl mechanism. โจ
MaxSetupAttempts
the maximum number of times a HylaFAX server program will attempt to initialize a modem before considering it "wedged". it's giving "we tried, we really did". ๐ญ
MaxTraversalยน
the maximum depth into the job queues that the scheduler will traverse when it's attempting to batch jobs together into a single call. the whole point is to stop the scheduler from burning a ton of CPU on batching attempts when the job queues get very long โ which is exactly when batching is unlikely to be useful anyway. ๐ง
MaxTriesยน
the default value for the maximum number of times the server will attempt to communicate with a remote site. ๐
note the difference fr fr: for a call to be counted against this limit, carrier must be established. this is in contrast to MaxDials, which limits the number of calls that will be placed on behalf of a job.
this value may be overridden by rules in the JobControl mechanism. and again โ this feature is completely distinct from the identically-named feature in the client-server communication, and jobs triggering these limits are handled differently for each. see also MaxDials.
MinAcceptedLineCount
the minimum number of received scanlines allowed on an "OK" page. using this setting stops confirmation from being sent for very short pages. tiny page? not today. ๐
MissedPageHandlingMethod
(Class 1/1.0 only) โ specifies how to react to a missed page received from the remote sender. it's one of: "RTN", "PIN", "DCN", or "CFR". ๐
if a page is missed (meaning the modem does not train on the Phase C carrier) in non-ECM mode, then โ like BadPageHandlingMethod โ it can be somewhat difficult to inform the sender of the problem. ๐ญ
here's the tea on each option:
"RTN"โ the proper behavior that fax protocol employs to request the sender retransmit the page after retraining. unfortunately, though, some senders will perceive this as a receipt confirmation and won't retransmit the page at all. ifsenderConfusesRTNis set to"yes"in the associatedhylafax-info(5F)file for this sender, then this method will not be used."PIN"โ the proper behavior that fax protocol employs to request the sender retransmit the page after a procedural interrupt. however, procedural interrupts are rarely used and may not be widely supported by other systems. ifsenderConfusesPINis set to"yes"in the associatedhylafax-info(5F)file for this sender, then this method will not be used."DCN"โ should trigger a call abortion by the sender. this should clearly indicate a problem to the sender, although a retransmission attempt in a later call cannot be guaranteed."CFR"โ causes an out-of-spec behavior where the CFR signal is used in response to the post-page message. while other HylaFAX senders should handle this signal in a way that leads to a retransmission of the page without retraining, most senders will disconnect after receiving this signal, since it is not a permitted response in Phase D โ and the sender response will be undefined. this method will only be used if it is explicitly configured for use.
historically, HylaFAX has employed both "RTN" and "DCN" behaviors by default, with complaints using either. the "PIN" and "CFR" behaviors were developed in order to evaluate whether other systems besides HylaFAX would tolerate them. ๐งช
MissedPageHandlingMethod is designed to give the administrator the opportunity to vary between these options through the DynamicConfig feature, to achieve a more nuanced approach. main character admin energy honestly. ๐
ModemGroupยน
define a logical name for a set of modem devices. this parameter lets you define a name that clients can use to refer to a collection of modems. ๐
the syntax is:
<name>:<definition>
where <name> is the name for the group, and <definition> is of the syntax:
[<limit>:]<regex>
where <limit> is an optional formatted expression of the limits for this ModemGroup, and <regex> is a regular expression that faxq(8C) matches against known modems.
presently <limit> only refers to a number that is the minimum number of modems in the group that must be left to stay idle (for receiving) after assigning an active job to the ModemGroup. the default for <limit> is 0.
so for example, the default modem to use for a job, any, is defined as:
any:0:.*
this parameter may be specified multiple times to define multiple modem classes. modem classes may overlap. โจ and the actual set of modems in a modem class that are considered for use may vary based on which modems are believed to be ready for use.
ModemPriority
the scheduling priority to use for a modem. priority values are in the range 0 to 255, with lesser values signifying higher (more desirable) priority. the HylaFAX scheduler process assigns the highest priority modem that is ready for use when scheduling an outbound job. ๐
if multiple available modems in a job's selected ModemGroup have the same ModemPriority value, then the HylaFAX scheduler assigns jobs to them in a round-robin fashion. fair and balanced, we love to see it. ๐
NoAnswerVoice
whether or not to disable the answering of calls indicated as voice (e.g. by DistinctiveRings). ๐
NoCarrierRetrys
this is mapped onto JobRetryNoCarrier. (yep, that's the whole description, bestie, don't @ me.) ๐
ModemReadyState
define the state transmitted to the HylaFAX scheduler process each time a modem is made ready by a faxgetty process. state is one of:
"R"โ ready for use"B"โ busy"D"โ down"E"โ exempt
the modem state can be used to control whether or not modems are assigned to outbound jobs. a modem's state is initially set to "R" (ready). modem state can be dynamically changed with the faxstate(8C) program, or by setting this configuration parameter with the faxconfig(8C) program.
the HylaFAX scheduler process will not assign jobs to a modem with a ModemReadyState of anything other than "R". ๐ซ
the differences between "B", "D", and "E":
"B"refers to a temporary condition that will automatically clear in the passing of time (as if the modem were in-use with receiving a fax)."D"refers to a condition that will not automatically clear (such as a wedged condition)."E"refers to a permanent condition as configured by the administrator (as for a receive-only modem).
if a user submits a job to a specific modem that has a ModemReadyState of "B" or "D", then the job will wait in the queue until the modem is made available, or until the job times out. in contrast, jobs submitted to a specific modem with a ModemReadyState of "E" will be rejected outright. ๐
exempt modems should be removed from any ModemGroup to which they belong (i.e. "any").
ModemRingResponse
this can be used to cause the command defined by ModemRingResponse to be sent to the modem after hearing at least ModemRingsBeforeResponse RINGs โ in order to receive DID-DTMF data, for example. ๐โจ
ModemRingsBeforeResponse
this defines the minimum number of RINGs that must be heard before ModemRingResponse is first sent to the modem. ๐ฆ
NotifyCmdยฒ
the program to invoke to notify a client of a job status change; see notify(8C). ๐
PageChopยน โ do we auto-truncate the trailing whitespace on outbound fax pages (when we can)? Obsessed with efficiency, honestly. If chopping is on, then any page with at leastPageChopThresholdtrailing whitespace gets sent as ashort page'' โ but only if the receiver can handle variable-length pages. Your values are:last'' = chop just the last page of each doc,all'' = chop every single page, ornone'' = no chopping, we're keeping the whitespace, bestie. โจPageChopThresholdยน โ the minimum amount of trailing whitespace that has to be sitting on a page before page chopping even gets attempted; peepPageChop. Heads up: this value is in inches. ๐PCL2FaxCmdยน โ the command to invoke to convert an HP-PCL document submitted for transmission into TIFF/F, suitable for transmission. ๐PDF2FaxCmdยน โ the command to invoke to convert a PDF document submitted for transmission into TIFF/F, suitable for transmission.PercentGoodLinesโ the minimum percentage of good rows of image data required for a received fax page to be deemed acceptable copy quality. Set this to zero and the server just... does not check received fax quality at all, no thoughts head empty. Also: fax received with error-correction don't get copy quality checking performed, periodt. See alsoMaxConsecutiveBadLines. ๐PollLockPokeModemโ when we're polling for a UUCP lockfile to show up or disappear, also test that the modem is still reachable. Genuinely useful for when the modem is apt to become disconnected while it's idle โ like an external modem that might lose power โ and the admin wants to get notified of that (as a ``wedged'' condition). ๐ซPollLockWaitโ when polling for the presence/removal of a UUCP lockfile, the time (in seconds) to wait between checks. Lockfile polling exists so the fax server doesn't collide with another process that's using the modem. Sharing is caring, but locks are law.PollModemWaitโ the time (in seconds) to wait between checks for a modem to become ready for use. Modem polling happens when a modem fails to reset cleanly. ๐ญPrioritySchedulingโ should the HylaFAX scheduler use the available priority job scheduling mechanisms to boost realtime execution, especially with Class 1 configurations on older or slower systems?
As of right now, PriorityScheduling is available for IRIX, SVR/4, HP-UX, and POSIX-compliant (i.e. Linux) operating systems. The default value varies so traditional HylaFAX behavior is maintained. On IRIX, SVR/4, and HP-UX systems where the configure script detects one of the functions schedctl(), priocntl() or rtprio(), the default is true. The only other supported priority mechanism is POSIX sched_setscheduler(), which gets used on Linux, OpenServer and possibly other systems. On those systems, and also on systems where no priority scheduling mechanism exists at all, the default is false. ๐
PS2FaxCmdยน โ the command to invoke to convert a POSTSCRIPT document submitted for transmission into TIFF/F, suitable for transmission; seeps2fax(8C). ๐QualifyPWDโ a string that says whether or not the identity of calling fax machines should be checked against an access control list before receiving fax. IfQualifyPWDis non-null, then only messages from fax machines identified in the file specified by that string (typicallyetc/passwd) will be accepted; it's similar toQualifyTSI. ๐QualifyTSIโ a string that says whether or not the identity of calling fax machines should be checked against an access control list before receiving fax. IfQualifyTSIis non-null, then only messages from fax machines identified in the file specified by that string (typicallyetc/tsi) will be accepted; seetsi(5F). IfQualifyTSIisn't specified in the config file, or the value is null, then literally every incoming fax message gets accepted. Come one, come all.RecvDataFormatโ the data format (compression scheme) to write received fax data in when copy quality checking is performed on the host. (When copy quality checking is not done by the server โ say, when the error correction protocol is in use โ the received fax data gets written exactly as it came off the modem.) The format can be one of:1-D MH'',2-D MR'',2-D MMR'', oradaptive''. An ``adaptive'' format makes the received data get written using whatever data format the sender and receiver negotiated. Heads up though: 2-D MMR is the most space-efficient data format, but the resulting file may not be viewable โ some commonly used programs do not properly read multi-strip TIFF with 2-D MMR data. ๐RecvFileModeโ the file protection mode to use when creating files that hold incoming fax. Note that this value is given in octal. The default value of0600means only the fax user can read received fax. If incoming fax are meant to be publicly accessible, you can set this, for example, to0644. See alsochmod(2). ๐งRejectCallโ set this totrueand the current call will not be answered, it'll be rejected. This option has no effect if it's set in the configuration file โ but when it's set by theDynamicConfigprogram, it controls the current call. This option supersedes the obsoleteQualifyCIDoption. Not me rejecting your call fr fr.RingDataโ a modem status string that identifies an incoming call as being for data use. Set this string when a phone line has been set up with distinctive ring service. See alsoRingFaxandRingVoice. ๐RingExtendedโ an identifier that matches the initial portion of an extended RING message sent by the modem, used to relay CID and/or DNIS data instead of sending it formatted on separate lines. โญRingFaxโ a modem status string that identifies an incoming call as being for fax use. Set this string when a phone line has been set up with distinctive ring service. See alsoRingDataandRingVoice. ๐RingsBeforeAnswerโ how many rings to wait before answering the phone. If this value is set to0, then the phone only gets answered in response to an explicit answer command; seefaxanswer(8C). โ๏ธRingTimeoutโ if a ring is heard and the call isn't answered, the time in ms to wait before reinitializing the modem for the next call. โณRingVoiceโ a modem status string that identifies an incoming call as being for voice use. Set this string when a phone line has been set up with distinctive ring service. See alsoRingDataandRingFax. ๐ธRTNHandlingMethodโ specifies how to react to an RTN signal received from the remote: one ofRetransmit'',Giveup'',Ignore'', orRetransmit-Ignore''. Pick your fighter.
``Retransmit'' assumes the page was not received successfully. HylaFAX will make up to two additional attempts to send that page, decreasing the signalling rate and retraining. If the RTN keeps coming, up to 2 additional calls will be placed. The downside? If the remote always responds with RTN, the page gets sent 9 times and no following pages get sent at all. Many fax machines will not behave this way, even though the T.30 specification seems clear that this is the intent of the RTN signal. ๐ตโ๐ซ
Some fax machines interpret RTN as meaning don't send the same data again. That's because RTN may indicate problems with flow control, incorrectly encoded T.4 data, or some incompatibility other than line noise. Fax machines that read RTN this way will disconnect and require a manual retransmission. This over and out'' behavior can be activated with the Giveup'' value. The advantage here is that the same page of image data won't get sent multiple times โ but the downside is that the following pages will not be sent. ๐
Ignore'' is similar to Giveup'' in that it makes the assumption the data cannot be automatically accepted by the receiver. But instead of disconnecting, the page of image data is abandoned and processing moves on to the next one. The remote is left to decide what to do with that unacceptable page of image data. The downside of this behavior is that the remote may or may not have kept the page, depending on how it interpreted the RTN signal โ but it does let us continue on to the next page. ๐คทโโ๏ธ
Retransmit-Ignore'' is a combo of Retransmit'' and ``Ignore''. The page of image data gets retransmitted up to two additional times, but rather than disconnecting after a third RTN signal for the same page, processing then continues on to the next page. This approach is an effort to satisfy both interpretations of an RTN signal. It lets the receiver hopefully get a better copy of the image data while not failing to send subsequent pages. And if the receiver saves or prints a copy of pages it transmits RTN for, then it could save or print up to three copies of every page. ๐ญ
SaveUnconfirmedPagesโ whether or not to save a received fax image page if the sender disconnects without sending the post-page message, without hearing our message confirmation, without retraining as requested, or otherwise breaks fax protocol following such pages for which the sender should not have a ``receipt confirmation''. ๐ซถSendFaxCmdยน โ the command to use to process outbound fax jobs; seefaxsend(8C). ๐ฅSendPageCmdยน โ the command to use to process outbound pager jobs; seepagesend(8C). ๐SendUUCPCmdยน โ the command to use to process outbound UUCP jobs. This parameter is not currently used, it's there for future development. Main character in waiting, lowkey.
ServerTracingยฒ
Okay so bestie, this one is a number that controls the generation of tracing information by a server when it is not actively sending or receiving facsimile. ๐
Tracing is split into areas, and every area is controlled on its own. To trace multiple areas at once, you bit-or the flag for each area together and that combined value is what you put in this tag. Math but make it fax. ๐
1(0x00001) โ Server Operation: queue management and general operation2(0x00002) โ FAX/IXO Protocol: T.30 facsimile protocol or IXO/TAP protocol4(0x00004) โ Modem Operations: modem hardware manipulation8(0x00008) โ Modem Communications: commands passed between host and modem16(0x00010) โ Timeouts: timer operations32(0x00020) โ Modem Capabilities: modem capabilities64(0x00040) โ HDLC Frames: binary T.30 HDLC frames128(0x00080) โ Binary Modem I/O: binary communication between host and modem256(0x00100) โ Server State Transitions: server program state transitions512(0x00200) โ Queue Management: job queue management1024(0x00400) โ Copy Quality: copy quality checking of received facsimile2048(0x00800) โ Job Management: low-level job management4096(0x01000) โ IXO Protocol: low-level IXO protocol8192(0x02000) โ Config File Parsing: unknown configuration file parameters16384(0x04000) โ FIFO Messages: inter-application messages32768(0x08000) โ Modem State Transitions: modem state changes (down, busy, ready)65536(0x10000) โ Dial Rules: dialstring rules parsing and execution131072(0x20000) โ Docq Changes: document reference handling262144(0x40000) โ TIFF library: any messages produced by the TIFF library524288(0x80000) โ ECM Frames: binary T.30-A HDLC ECM frames1048576(0x100000) โ SSL Fax data: SSL Fax data bytes
So like, if you wanna trace server operations and protocol operations, you'd put 1+2=3. Periodt. ๐
NB: tracing timeouts and/or binary modem I/O can adversely affect the operation of the fax server; enabling these areas should be done with extreme care. ๐ญ Not a drill, bestie โ treat those two like a hot stove.
Server tracing gets directed to syslog(3) using the facility you picked with the LogFacility configuration parameter. And heads up: syslogd(8C) must be configured to capture facility.info, facility.debug, facility.warning, and facility.err messages. See hylafax-log(5F) for a description of the logged messages. ๐ฆ
SessionTracingยฒ
A number that controls the generation of tracing information by a server while it's sending or receiving facsimile. โจ The number is interpreted identically to ServerTracing โ same vibe, different moment.
Important lil difference tho: session tracing goes into log files in the log subdirectory; peep hylafax-log(5F) for more info. ๐
ShareCallFailuresยฒ
A string that says which types of call failures should get shared to blocked jobs (in the scheduler config file) or to batched jobs (in the per-device configuration files). ๐ซถ
Why tho? To stop a big ol' pile of jobs headed to the same destination from just stalling in the queue forever and repeatedly yeeting out failed delivery attempts because of call-related errors โ think an incorrectly-entered destination number. ๐ Jobs that are batched or blocked (depends which config file you're in) get the same failure indication and the same ``dials'' increment as the job that was active and running at the time (or the one leading the batch). Iconic, honestly.
ShareCallFailures may contain these key words, in any order, with any deliniation:
busyโ Busy signal detectednocarrierโ No carrier detectednoanswerโ No answer from remotenodialtoneโ No local dialtone
Alternatively, you can set ShareCallFailures exactly to always'' โ that makes it apply to **all** of the call failure types listed above and is synonymous with busy nocarrier noanswer nodialtone''. ๐
SpeakerVolume
The volume level the in-modem speaker should be adjusted to while in command mode. ๐ฅ The possible values are:
Offโ silentQuietโ almost inaudibleLowโ tolerable in privacyMediumโ loud enough to hear in the next roomHighโ intolerable
Note that the speaker is always turned off once carrier is established. Also, beware that some modems support fewer volume settings; see ModemSetVolumeCmd. ๐
StaggerCallsยน
The time, in seconds, to delay between initiating outbound job calls. โณ
So if HylaFAX is using a single phone line shared for both sending and receiving of faxes, a StaggerCalls setting of, for example, 300 would ensure that outbound calls are made in succession no more frequently than every 5 minutes โ which leaves time between jobs for incoming calls to be received. Giving your line a lil breather, as it deserves. ๐ธ
TagLineFont
The filename of the font to use in imaging tag lines across the top of each transmitted page. ๐ Fonts must be stored in the Portable Compiled Font (PCF) format used by the X11 Window System.
Filenames are specified relative to the root of the spooling area; e.g. etc/lutRS18.pcf or etc/LiberationSans-25.pcf.
If no font is specified, if a null filename is specified, or if the specified font file is not readable, then tag lines will not be generated. ๐ญ
Note that the etc/lutRS18.pcf TagLineFont that has historically been the default with HylaFAX does not have glyphs available beyond basic ASCII โ and to show non-ASCII characters you need a different file that has characters matching those characters found in TagLineFormat as decoded by the TagLineLocale setting. For this reason, the etc/LiberationSans-25.pcf is now considered the default, since it has unicode support for Latin, Greek, and Cyrillic characters. ๐๐
TagLineFormat
The format string to use when imaging tag lines across the top of each transmitted page. โจ This string may include escape codes that cause various items to be interpolated into the imaged tag line.
Any escape code supported by strftime(3C) (which use a single ``%'') may be used, as well as the following server-implemented codes:
%%aโ destination subaddress%%cโ destination company name%%Cโ sender's company name%%dโ destination phone number%%gโ sender's geographic location%%Gโ destination geographic location%%iโ job identifier%%Iโ group identifier%%jโ user-specified job tag%%lโ job TSI or LocalIdentifier or canonicalized FAXNumber%%mโ sender's electronic mail address%%nโ canonicalized FAXNumber%%pโ current page number of session%%Pโ current page number of job%%rโ receiver's name%%sโ sender's name%%Sโ subject%%tโ total pages in session%%Tโ total pages in job%%vโ sender's voice number%%Vโ destination voice number%%%โ a literal ``%''
There are numerous date and time format options available through strftime(3C). Bestie, go read its documentation for the elaboration โ it's giving rich. ๐ Used by default, %c'' is defined as The preferred date and time representation for the current locale.''
In addition, the format string may indicate that text is to be broken into multiple equal-sized fields by separating text with ``|'' characters. ๐ฏ Here's the rules:
- If the first character in the field is a ``{'' then the text is left-aligned.
- If the first character in the field is a ``}'' then the text is right-aligned.
- Otherwise, the text is centered in the field.
For example, {a|b|}c'' would cause the tag line to be broken up into three equal-sized areas, with the string a'' left-aligned in the first region, b'' centered in the second region, and c'' right-aligned in the third region. โจ
The default tag line format string is:
From %%n|%c|Page %%P of %%T
The differences between the %%p or %%P and the %%t or %%T options are noticed when a fax job is retried after an incomplete attempt, and only the previously unsent pages are then queued in a successive session. ๐ See also TagLineFont.
TagLineLocale
The locale setting for handling TagLineFormat, for example, ``en_US.UTF-8''. ๐ธ If TagLineFormat is encoded via UTF-8 then the correct setting of TagLineLocale is requisite for proper decoding by the parser. By default the environment settings are used. ๐
TIFF2FaxCmdยฒ
The command to invoke to convert a TIFF submitted for transmission to TIFF/F, suitable for transmission; see tiff2fax(8C). ๐ฆ
In the scheduler configuration file this is used in outbound job preparation. In the per-device configuration files this is used in conjunction with RTFCC features for comparing relative data sizes between different formats. โจ
TimeOfDayยน The default time-of-day restrictions to apply to outbound jobs. Outbound jobs will be processed only during the specified time. Any jobs submitted outside this time period will be held until the start of this time. The syntax for time-of-day restrictions is designed to be compatible with the syntax used by the UUCP software. The following BNF describes the syntax: Syntax = tod ["," tod] tod = <days><timerange> days = "Any" | "Wk" | <dayname>+ | nothing dayname = "Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" timerange = <start> "-" <end> | nothing start = <24hrtime> end = <24hrtime> 24hrtime = {0-9}{0-9}{0-9}{0-9} nothing = where start and end are 24-hour times, day names can be either 2- or 3-characters, and a null day or time specification means any time or day. White space and other syntactic sugar may be freely inserted between tokens but may not be inserted between 24-hour times in the time range.
This value may be overridden by rules in the JobControl mechanism.
TSIRecvdCmd The pathname of the optional program, e.g. ``etc/tsirecvd'', that similar to DynamicConfig can set the RejectCall option to cause the current call to be rejected instead of continued. TSIRecvdCmd should provide a more capable mechanism than QualifyTSI for those wishing to screen calls based on received TSI. Note that this file must be marked as executable by the faxgetty process. Note also that any configuration modifications made by the TSIRecvdCmd script other than RejectCall is unsupported and has undefined results.
Unblockยน Intended to only be used from the faxconfig(8C) utility, this will force faxq(8C) to unblock one call to the value-specified destination number. The destination number should be provided in the format known by faxq(8C), as seen in the hylafax-info(5F) database files.
Use2Dยน Control the use of 2D-encoded data for transmitted facsimile.
UseJobTagLine Allow the use of the job-specified tagline instead of the configured TaglineFormat
UUCPLockModeยฒ The file protection mode that should be used when creating UUCP lockfiles. Note that this value is given in octal.
UUCPLockDirยฒ The pathname of the directory in which UUCP lockfiles are to be created.
UUCPLockTimeoutยฒ The time in seconds to wait before removing a stale UUCP lockfile (i.e. a lockfile whose owner does not appear to exist). If this value is set to 0, then the fax server will never remove a stale lockfile.
UUCPLockTypeยฒ A string that specifies the type of UUCP lockfile to create. The string may be one of ascii'' or binary'' depending on whether the process-ID of the lock owner is written to the file as an ascii string or as a binary value, respectively. In addition, two prefixes may be used to control the format of the lock filename. If the type string is prefixed with a +'', then SVR4-style filenames are generated using the major device number of the tty device and the major and minor device numbers for the filesystem on which the tty device resides. If the type string is prefixed with a -'', then any upper case letters in the device part of the lockfile name are converted to lower case letters; for example, LCK..ttyA01'' is converted to LCK..ttya01''. This upper-to-lower case conversion is useful for systems such as SCO where the convention is to name devices with upper-case letters, but create lockfiles with lower-case letters.
VGettyArgs A string that indicates whether or not the server should invoke a voice getty program in response to an incoming voice call. If the string value is not null, then it is interpreted as a set of arguments to pass to the vgetty program. Before supplying the arguments, the string is first scanned for %''-escape sequences: any appearance of %l'' is replaced with the tty name and any appearance of %s'' is replaced with the serial port speed (in decimal). Any appearance of escaped numbers 1 through 9 (%1'' through %9'') are replaced by the match to the corresponding CallIDPattern, if present. The %'' character can be specified with ``%%''. If the VGettyArgs parameter is not specified in the configuration file or if the string value is null, then voice connections will be rejected. Note that in addition to the specified command line arguments, the vgetty program is invoked with its standard input, output, and error descriptors directed to the controlling tty device.
WedgedCmdยน The program to invoke when a modem is deemed ``wedged''; see wedged(8C).
MODEM-ORIENTED CONFIGURATION PARAMETERS This section lists configuration parameters that are specific to the setup and operation of the modem. All commands must be specified exactly as they are to be transmitted to the modem (note that this is a departure from previous versions of this software that automatically prepended AT'' to each line of commands sent to the modem). When multi-line commands are required, enclose the commands in quote marks ("'') and insert a newline character \n'' where lines should be broken. An example of a multi-line command string is AT+FCQ=1\nAT+FBADMUL=20\nAT+FBADLIN=10''.
Command strings sent to the modem may include command escapes that force the host to alter the DTE-DCE communication rate, the flow control scheme used between the host and modem, delay for a period of time, flush input data, and wait for a specific response from the modem. The following escape codes are interpreted: Escape Effect <none> enable no flow control between DTE and DCE <xon> enable software flow control between DTE and DCE <rts> enable hardware flow control between DTE and DCE <2400> set the DCE-DTE baud rate to 2400 bps <4800> set the DCE-DTE baud rate to 4800 bps <9600> set the DCE-DTE baud rate to 9600 bps <19200> set the DCE-DTE baud rate to 19200 bps <38400> set the DCE-DTE baud rate to 38400 bps <57600> set the DCE-DTE baud rate to 57600 bps <76800> set the DCE-DTE baud rate to 76800 bps <115200> set the DCE-DTE baud rate to 115200 bps <delay:N> delay N x 10 ms on the host (0 <= N <= 255) <flush> flush any pending input data from the modem <waitfor:R> wait for the response R from the modem (see below) <play:C> play the etc/playC.raw audio file (see below) Note that commands to the left of an escape code are sent to the modem before the associated actions are carried out on the host. This may be important when changing baud rates, as the result code from a command may be returned at the new baud rate. Also, beware that not all baud rates are supported by all systems and modems; the set of baud rates supported by a host is usually listed in stty(1).
The <waitfor:..>'' escape can be used to override the default behavior which is to wait for an OK'' response to a command sent to the modem. The possible response codes are: NOTHING a null response OK the default response CONNECT CONNECT...'' NOANSWER NO ANSWER...'' NOCARRIER NO CARRIER...'' NODIALTONE NO DIALTONE...'' BUSY BUSY'' OFFHOOK PHONE OFF-HOOK'' RING RING...'' ERROR error status from modem VCON voice connection indicator OTHER any unrecognized modem response For example ATO\r<waitfor:CONNECT>'' would send ATO\r'' to the modem and then wait for a response with a leading CONNECT'' in it; and ATS99=2\r<delay:2><flush><waitfor:NOTHING>'' would send ATS99=2\r'' to the modem, delay 20 ms, flush any input from the modem, and then continue (not wait for any response).
The <play:C>'' escape can be used to play a raw audio file with a voice modem. The files are named etc/playC.raw where C'' is any character. This feature can be used, for example, to play a brief audio message after picking up the line but before answering. A configuration example may be:
ModemRingResponse: "AT+FCLASS=8;H1\nAT+VSM=131\nAT+VLS=1\nAT+VTX\n<waitfor:CONNECT><play:1><waitfor:OK>AT+VTS=[933,,150]" ModemAnswerCmd: "<delay:100>AT+FCLASS=1;A" CallIDPattern: SHIELDED_DTMF CallIDAnswerLength: 4
In this example using an IS-101 voice-compliant modem, a RING indication from the modem will cause the modem to be placed in voice mode, set ulaw audio compression, and via the connected phone line play back the etc/play1.raw audio file, which may say, "After the tone enter a four- digit extension, then start the fax." Following the message a tone is played.
ModemAnswerCmd The command to answer the phone. If possible, this command should generate a result string that identifies whether the incoming call is from a facsimile, voice, or data modem. Typically this auto-detection is configured ahead of time; e.g. for Class 2 modems with the ``AT+FAA=1'' command.
The following table describes how the result codes are interpreted by the facsimile server. ๐
CONNECT FAXโ Default: Fax ยท Class 1:-ยท Class 2:-ยท Class 2.0:--CONNECTโ Default: Data ยท Class 1: Unknown ยท Class 2:-ยท Class 2.0:-NO ANSWERโ Default: No Answer ยท Class 1:-ยท Class 2:-ยท Class 2.0:-NO CARRIERโ Default: No Carrier ยท Class 1:-ยท Class 2:-ยท Class 2.0:-NO DIALTONEโ Default: No Dialtone ยท Class 1:-ยท Class 2:-ยท Class 2.0:-ERRORโ Default: Error ยท Class 1:-ยท Class 2:-ยท Class 2.0:-FAXโ Default: Fax ยท Class 1:-ยท Class 2:-ยท Class 2.0:-DATAโ Default: Data ยท Class 1:-ยท Class 2:-ยท Class 2.0:-+FCONโ Default:-ยท Class 1:-ยท Class 2: Fax ยท Class 2.0: Fax+FCOโ Default:-ยท Class 1:-ยท Class 2: Fax ยท Class 2.0: Fax+FDMโ Default:-ยท Class 1:-ยท Class 2: Data ยท Class 2.0: Data+FHNG:โ Default:-ยท Class 1:-ยท Class 2: Error ยท Class 2.0: ErrorVCONโ Default:-ยท Class 1:-ยท Class 2: Voice ยท Class 2.0: Voice
Okay so real talk about those columns, bestie. The Default''</purple> column tells you how that result string gets read in <hotpink>either class 1 or 2</hotpink>, unless something explicitly overrides it. The <purple>Class 1'' column is all about result strings that get special handling for modems running in class 1, the Class 2''</purple> column is the special handling for class 2 modems, and the <purple>Class 2.0'' column is the special handling for class 2.0 modems. ๐
And if you see Unknown in there? That just means the interpretation depends on how the call got answered โ if the answering happened for an explicit call type, that type is what's assumed; otherwise a Fax call is presumed. Not guessing, that's literally the rule. ๐ฆ
ModemAnswerAgainCmd
The command to answer the phone if ModemAnswerCmd looks like it just got ignored ๐. Typically this should include a delay escape, so the timing of the answer sits away from the ring โ because if the modem can't answer that closely following the ring, you're gonna have a bad time.
ModemAnswerDataBeginCmd
The command to send to the modem once a data connection has been established. ๐
ModemAnswerDataCmd
The command to explicitly answer the phone for a data connection. This command must generate a result string that identifies the incoming call as coming from a data modem. If this parameter isn't specified, or it's null, then the value of ModemAnswerCmd is used instead. Also peep AdaptiveAnswer and AnswerRotary. โจ
ModemAnswerDialCmd
The command to explicitly answer the phone for a dialed connection. This command must generate a result string that identifies the incoming call as coming from a facsimile modem. If this parameter isn't specified, or it's null, then the value of ModemAnswerCmd is used instead.
ModemAnswerFaxBeginCmd
The command to send to the modem once a facsimile connection has been established. ๐
ModemAnswerFaxCmd
The command to explicitly answer the phone for a facsimile connection. This command must generate a result string that identifies the incoming call as coming from a facsimile modem. If this parameter isn't specified, or it's null, then the value of ModemAnswerCmd is used instead. See also AdaptiveAnswer and AnswerRotary. ๐
ModemAnswerVoiceBeginCmd
The command to send to the modem once a voice connection has been established.
ModemAnswerVoiceCmd
The command to explicitly answer the phone for a voice connection. This command must generate a result string that identifies the incoming call as being for voice. If this parameter isn't specified, or it's null, then the value of ModemAnswerCmd is used instead. See also AdaptiveAnswer and AnswerRotary. ๐ซถ
ModemAnswerResponseTimeout
The maximum time, in milliseconds, to wait for a response from the modem after sending ModemAnswerCmd. Heads up though โ you may wanna shorten this value when you're using the server-based adaptive answer strategy; go look at AdaptiveAnswer. ๐
ModemATCmdDelay
A delay, in milliseconds, that should be performed before each ``AT'' command string gets sent to the modem. โณ
ModemBaudRateDelay
The amount of time, in milliseconds, to pause after setting the baud rate on the serial line. This is only needed for hosts and modems (think USRs) where setting the serial line parameters does not take effect immediately.
ModemCEDCmd
The command to signal CED and raise the V.21 HDLC transmit carrier after a session has started. This gets used after a procedure interrupt. Normally this command is ATA'', but if the modem doesn't permit ATA'' after a session has started, then ``AT+FTH=3'' should probably be used instead.
ModemCNGCmd
The command to signal CNG and listen for V.21 HDLC after a session has started. This gets used after a procedure interrupt. Normally this command is ATD'', but if the modem doesn't permit ATD'' after a session has started, then ``AT+FRH=3'' should probably be used instead.
ModemCommaPauseTimeCmd
The command to set the time, in seconds, that the modem should pause when it hits a ``,'' modifier in the dialing string. ๐ฆ
ModemDialCmd
The command to place a phone call. The string is assumed to be suitable for use as a parameter to the sprintf(3S) function โ so the %'' character should be escaped as %%''. The dial command must include a single %s'' where the number that's to be dialed gets substituted. The command may include a single %d'' where the origin number gets substituted.
Facilities like tone or pulse dialing, outgoing prefixes to route through a PBX, and so on, should all be baked into the dialing command string. Also super important: if possible, a trailing @'' symbol should be included so the modem returns result codes that distinguish between **no answer** and **no carrier**. Using the @'' lets the server reduce the probability that a wrong number is continually redialed. If your modem doesn't support this facility, then it may be necessary to raise the number of retries done when a ``NO CARRIER'' result comes back. ๐ฅ
ModemDialResponseTimeout
The maximum time to wait, in milliseconds, for a response from the modem after sending [the original text just kind of stops right there, bestie โ no cap ๐] This value should be longer than the timeout programmed into the modem through the ModemWaitTimeCmd parameter. This extra server-based timeout exists to guard against modems that can ``lock up'' while dialing the telephone. ๐ญ
ModemDoPhaseCDebug
Whether or not to query the modem for responses during image data transmission. Normally the modem shouldn't produce any responses during Phase C data transmission. However, in some debugging scenarios (i.e. some Class 2.1 modems may show debugging information) it may be appropriate to query the modem for responses during the data transmission. ๐
ModemDTRDropDelay
The time, in milliseconds, to pause between placing DTR OFF and DTR ON while resetting a modem. This value should be at least equal to the time-value of the analogous S-register, usually S25. This so-called DTR drop can be bypassed entirely by setting ModemDTRDropDelay to 0 โ but that should likely only be used for debugging purposes. ๐
ModemEchoOffCmd
The command to disable echoing of commands sent to the modem.
ModemFlowControl
The type of flow control to use between DTE and DCE; one of NONE'', XONXOFF'' and ``RTSCTS''. This value is used to select the string sent to the modem to initially establish DTE-DCE flow control; one of ModemNoFlowCmd, ModemSoftFlowCmd, and ModemHardFlowCmd. The current flow control setting is also used to select the appropriate flow control command to send to the modem when the software switches to Class 1, 2, or 2.0; see Class1HFLOCmd, Class1NFLOCmd, Class1SFLOCmd, Class2HFLOCmd, Class2NFLOCmd, and Class2SFLOCmd. โจ
The server supports both software and hardware flow control for Class 1, Class 2, and Class 2.0 modems. Whether to use hardware or software flow control depends on the capabilities of the modem and the host hardware and operating system. Communication rates above 9600 baud often require that hardware flow control be used for reliable DTE-DCE communication. However โ beware โ many modems only support software flow control when sending or receiving facsimile. โ ๏ธ
Note that modems usually support software flow control even if they have no explicit AT-command to activate it; in this case it gets switched on when the modem enters fax mode, having AT+FCLASS=... from DTE.
ModemFrameFillOrder
The bit order to expect for received HDLC frames and to use when formulating HDLC frames to send. This value may be either LSB2MSB when bits are ordered from least-significant-bit to most-significant-bit (as in the CCITT specification) or MSB2LSB when bits are ordered in the reverse direction. ๐ฆ
ModemHardFlowCmd
The command to setup hardware (RTS/CTS) flow control between DTE and DCE.
ModemMinSpeed
The minimum acceptable signalling rate for transmitting facsimile page data. Possible values are: 2400, 4800, 7200, 9600, 12000, and 14400. โก
ModemMfrQueryCmd
The command to send to the modem to get the manufacturer identification string. If this parameter isn't set, then it gets initialized to AT+FMFR?'' for Class 2 modems, or to AT+FMI?'' for Class 2.0 modems, or to ATI3'' for Class 1 modems. And if the parameter begins with a !'', then the remainder of the string is taken to be the identification string and no command is issued to the modem. ๐
ModemModelQueryCmd
The command to send to the modem to get the model identification string. If this parameter isn't set, then it gets initialized to to AT+FMDL?'' for Class 2 modems, or to AT+FMM?'' for Class 2.0 modems, or to ATI0'' for Class 1 modems. And if the parameter begins with a !'', then the remainder of the string is taken to be the identification string and no command is issued to the modem. ๐
ModemNoAutoAnswerCmdโ the command that stops the modem from picking up all by itself when the phone rings. we do NOT do auto-answer here ๐ModemNoAutoAnswerCmdDelayโ how long to pause, in milliseconds, after you get theOKback fromModemNoAutoAnswerCmdbefore you send literally anything else to the modem. and bestie, all input coming in from the modem gets flushed once that pause is over. ๐ซงModemNoDialtoneRetriesโ the max number of attempts to snag a dialtone off the line when you're placing a call. how many times we're willing to try ๐ModemNoFlowCmdโ the command that turns OFF flow control between DTE and DCE. goodbye flow control ๐ซModemOnHookCmdโ the command that puts the phone on hook, aka hangs it up. like actually ending the call ๐โ๏ธModemPageDoneTimeoutโ the max time to wait, in milliseconds, for the modem to say something back after you send a whole page of facsimile data. think: waiting for the response to a Class 2/2.0AT+FETcommand. we are waiting, respectfully โณModemPageStartTimeoutโ the max time to wait, in milliseconds, for that first response from the modem when you start sending a page of facsimile data. think: waiting for the response to a Class 2/2.0AT+FDRcommand. the opening beat of the page ๐ฌModemRaiseATCommandsโ says whether ALL the config AT commands for the modem should get auto-raised to upper-case. the standard is upper-case everything in AT commands, and honestly some rare modems are known to act a whole mess with lower-case commands. BUT sometimes an admin wants lower-case commands for a rare edge case, like working around a modem that blacklists dialed numbers. upper-case is the moment, but exceptions exist ๐ModemRateโ the baud rate for DCE-DTE communication. this value can be one of:115200,76800,57600,38400,19200,9600,4800,2400,1200. the default is19200because so many modems lock the rate at 19200 when they're sending or receiving facsimile. โ ๏ธ heads up: not every value is supported by every operating system and modem, so go consultstty(1)for the rates your system actually has. default 19200, no cap ๐ถModemReadyCmdsโ a string of commands to throw at the modem during reception initialization. this string goes out to the modem after the standard set of configuration commands the fax server needs. why tho? for stuff like un-busying a DID line so calls can actually come through. let the calls in!! ๐ชโจModemRecvFillOrderโ the bit order to expect for received facsimile data. this value can be eitherLSB2MSBwhen bits are ordered from least-significant-bit to most-significant-bit (that's the CCITT specification way) orMSB2LSBwhen bits are ordered the other direction. per all the various specs, every modem should return data inLSB2MSBorder. HOWEVER ๐ most Class 2 modems (except maybe only Multitech) useMSB2LSBfor compatibility with modems built on Rockwell hardware/firmware that shipped with a bug that was way too widespread to ever correct.
if this parameter isn't set, it gets autodetected and set to LSB2MSB for Class 1 and Class 2.0 modems, and MSB2LSB for non-Multitech Class 2 modems. but that autodetect may be straight-up wrong for your modem, so you'll have to specify this parameter explicitly. autodetect is giving best guess energy ๐
ModemRecvSuccessCmdโ a string of commands to send to the modem after a successful receive session, before the call gets disconnected. victory lap commands ๐ModemResetCmdsโ a string of commands to send to the modem during initialization. this string goes to the modem before the standard set of configuration commands the fax server requires. โ ๏ธ important: these commands should NOT include normal reset commands that are already specified through other parameters. for example, commands to set up flow control, DCD handling, DTR handling, etc. belong in the appropriate configuration parameters, NOT in this one. also, the soft reset command (usuallyATZ) should NOT be included in this string โ the servers issue that command explicitly. do not double up, bestie, the servers handle it ๐ โโ๏ธModemResetDelayโ the time, in milliseconds, to pause after setting DTR ON while resetting a modem. here's the thing: DTR ON doesn't respond withOK, so this parameter has to be long enough to give the modem time to be ready forModemSoftResetCmdnext. give it a sec to wake up ๐ดModemResultCodesCmdโ the command that enables result codes. turn the codes on โModemRevQueryCmdโ the command you send to the modem to get a firmware revision identification string back. if this parameter isn't set, it's initialized toAT+FREV?for Class 2 modems, or toAT+FMR?for Class 2.0 modems. and if the parameter starts with a!, then the rest of the string is just taken as the identification string and no command gets issued to the modem at all. sneaky little shortcut ๐ต๏ธโโ๏ธModemSecondAnswerCmdโ the command to send to the modem in case that first answer command comes back withOKinstead of the indication you'd otherwise expect. this command exists to resume the answer procedure right where the first one left off. take two, continue from where we were ๐ฏModemSendBeginCmdโ the command to send to the modem once carrier is established during a transmit operation. this parameter is genuinely useful for systems that can't enable hardware flow control without DCD asserted. niche but iconic ๐งModemSendFillOrderโ the bit order the modem expects for transmitted facsimile data. this value can be eitherLSB2MSBorMSB2LSB(peepModemRecvFillOrderabove for the full lore). virtually every modem expects transmitted facsimile data inLSB2MSBbit order. LSB2MSB, basically always ๐คModemSetOriginCmdโ the command used to set the call origin information before placing a call. the command can include a single%d, which is where the job requestfaxnumberstring gets substituted. it can also include a single%s, which is where the job requestfaxnamestring gets substituted. templating era ๐ชModemSetVolumeCmdโ the commands used to set the modem speaker volume levels. there should be FIVE whitespace-separated commands, one each for setting the volume toOff,Quiet,Low,Medium, andHigh. the default is"ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1". also seeSpeakerVolume. ๐โจModemSetupAACmdโ the command to set up adaptive answer support in the modem, if it's available. "adaptive answer" is the term for the ability to tell apart calls coming from facsimile, voice, and data sources. ๐ note that this string is the LAST command issued by the device drivers during setup, so if it needs to, the command string can switch to a different operating mode (for example, on some Rockwell-based modems you have to issue theAT+FAA=1command in Class 0). last one in, so it can change the vibe ๐ญModemSetupDCDCmdโ the command to set up DCD handling. on most systems the facsimile server enables the CLOCAL flag on the tty device the modem is connected to. this should make sure the system does NOT close an open file descriptor associated with the modem when carrier gets dropped. so for most systems and modems,ModemSetupDCDCmdshould set up DCD to reflect carrier. carrier dropped โ hang up the fd ๐กModemSetupDTRCmdโ the command to set up DTR handling so the modem gets reset when the host lowers the DTR signal. the facsimile server uses this facility to make sure modems don't get left in a "locked up" state. nobody likes a stuck modem ๐ModemSoftFlowCmdโ the command to set up software (XON/XOFF) flow control between DTE and DCE. soft flow, soft life ๐ModemSoftResetCmdโ the command that forces a soft reset of the modem. gentle reset, not a hard one ๐ModemSoftResetCmdDelayโ the time, in milliseconds, to pause after receiving theOKfollowingModemSoftResetCmd, before any further commands get sent to the modem. let it breathe ๐ฌ๏ธModemSoftRTFCCโ whether or not to enable software-driven Real-Time Fax Compression Conversion. RTFCC lets HylaFAX convert the image compression between MH MR and MMR formats, regardless of howfaxqformatted the image file. ๐จ note that when you're using RTFCC, the compression format of the file gets IGNORED, which means the-1,-2, and-3options forsendfax,ps2fax, and others will only influence how the document is prepared byfaxqโ they will NOT influence the actual negotiated session parameters. also,Class2RTFCCtakes precedence overModemSoftRTFCC, and if both are enabled, then software-driven RTFCC will not be performed in favor of the firmware-driven RTFCC. firmware wins the tiebreak, periodt โ๏ธModemTypeโ this parameter MUST be set to one of:Class2,Class2.0,Class1, orClass1.0, to indicate that the modem is a Class 2-, Class 2.0-, Class 1-, or Class 1.0-style modem, respectively. if this parameter isn't set, HylaFAX detects which classes the modem supports and makes an internal decision on which one to use. historically, that decision picks Class 2.1 over Class 2.0 over Class 2 over Class 1.0 over Class 1. BUT some exceptions get made โ for instance, with US Robotics modems, where Class 2.0 support is avoided. the class hierarchy is real ๐ModemVerboseResultsCmdโ the command that enables verbose result codes, as opposed to numeric ones. words not numbers ๐ฌModemWaitForConnectโ if this is enabled, the facsimile server will NOT consider a connection established when answering an incoming call until it receives aCONNECTstatus string. this is mainly useful for Rockwell RC32ACL-based modems, which sendFAXandDATAstatus messages before they sendCONNECT. wait for the CONNECT, bestie, it's coming โฑ๏ธModemWaitTimeCmdโ the command that sets the number of seconds to wait for a carrier signal when placing a call or answering the phone. carrier signal, please show up ๐
โจ T.30 PROTOCOL CONFIGURATION PARAMETERS โจ
Okay so these parameters are all about the implementation of the CCITT T.30 facsimile protocol inside the Class 1 device driver. And listen โ do not go changing these unless you have a full, deep, spiritually-complete understanding of how the server operates. Like, fully. ๐ These are not vibe-check-and-see settings.
FaxT1Timerโ the value of the T1 timer, in milliseconds. This one times out the initial session contact, i.e. the receipt ofDIS/DCS.FaxT2Timerโ the value of the T2 timer, in milliseconds. This one caps how long we wait for expected HDLC frame commands from the remote. Example: waiting on thePPSsignal during Phase D. The spec says this should be6.0s +/- 15%. Usually when this timer expires it means the fax session has failed, periodt. ๐ญFaxT4Timerโ the value of the T4 timer, in milliseconds. This one caps how long we wait for HDLC frame responses from the remote. Example: waiting for the response to thePPSsignal during Phase D. The spec gives this as3.0s +/- 15%for automatic units and4.5s +/- 15%for manual units. Usually when this one expires it triggers retransmissions of commands.
๐ฆ CLASS 1 MODEM CONFIGURATION PARAMETERS ๐ฆ
These ones are specific to configuring Class 1-style modems. And fr fr, they should not be changed lightly:
Class1Cmdโ the command that puts the modem into Class 1 operation.Class1AdaptRecvCmdโ the command used to enable adaptive reception support (usuallyAT+FAR=1). This feature is new in T.31, and ngl a lot of modems just won't support it. But when it works? It may reduce the number of reception failures caused by errors cascading from+FCERRORmessages. ๐Class10AutoFallbackโ whether or not the modem implements an automatic fallback to G3 mode when V.8 handshakingANSamis not detected for a Class 1.0 V.34-Fax (SuperG3) call.Class1ColorJPEGSupportโ whether or not to enable support for T.30-E full-color facsimile with JPEG compression. Turning this on automatically turns onClass1GreyJPEGSupporttoo. Iconic.Class1EnableV34Cmdโ the command to enable V.34-fax support with at least the desired maximum primary channel rate.Class1ECMCheckFrameLengthโ whether or not to require the frame length for ECM data frames to be complete when checking for frame integrity. Normally this is not beneficial (and it can be problematic for some senders), but in some cases the frame CRC isn't reliable because of modem behavior. ๐ซถClass1ECMSupportโ whether or not to support the T.30-A error correction protocol. Heads up: using ECM requires 64 kilobytes of free memory per modem in active use.Class1PersistentECMโ whether or not to keep retransmitting and allow you to keep receiving image data in ECM protocol that isn't accepted as valid after four successive attempts.Class1ECMFrameSizeโ the size in bytes of image frames to transmit during ECM protocol. This setting also indicates a preference in receive sessions. The only acceptable values are64and256. A setting of64may be useful on high-load systems, and possibly in environments with extremely poor line quality.Class1ExtendedResโ whether or not to support resolutions other than normal and fine. This option has been deprecated byClass1Resolutions. ๐Class1ExpectedPageSizeโ the expected receive page size in bytes, used to calculate wait times for non-ECM Phase D if a premature Phase C carrier loss occurs.Class1FrameOverheadโ the number of extraneous bytes in HDLC frames sent to the host in response to anAT+FRHcommand. For modems that properly implement the Class 1 interface, this number should be4(the default).Class1FRHNeedsResetโ if the modem's+FRH=3command sometimes needs to be reset in order to do its job, enable this. Doing so limits the wait time for the+FRH=3command before re-issuing it.Class1FullDuplexTrainingSyncโ whether or not to enable support for a full-duplex modem feature while receiving training, for when the sender doesn't readily sync.Class1GreyJPEGSupportโ whether or not to enable support for T.30-E greyscale facsimile with JPEG compression. This is always enabled ifClass1ColorJPEGSupportis enabled.Class1HookSensitivityโ the number of times to ignore on-hook detections and merely treat them as command or modem errors.Class1JBIGSupportโ whether or not to enable support for T.85 monochrome facsimile with JBIG compression. The options are:trueโ support in both sending and receivingfalseโ no supportsendโ support only in sendingreceiveโ support only in receiving
And also: if a compatible JBIG library was found during the build process, then send support is enabled by default. If the TIFF tools were found to support JBIG during the build process, then receive support is enabled by default. ๐
Class1MRSupportโ whether or not to enable support for two-dimensional Modified Read (MR) image data format compression.Class1MMRSupportโ whether or not to enable support for two-dimensional Modified Modified Read (MMR) image data format compression. Note: MMR support also requires ECM support to be enabled. They're a package deal, bestie. ๐ซถClass1HasRHConnectBugโ a Class 1 modem should only reportCONNECTafterAT+FRH=3when V.21 HDLC data is detected. But some modems will incorrectly reportCONNECTafterAT+FRH=3whenever any carrier is present. In those cases,Class1HasRHConnectBugshould be set totrue. ๐ญClass1HasRMHookIndicationโ a Class 1 modem should returnERRORafterAT+FRM=<mod>when it is on hook. But some modems will incorrectly useERRORto report a carrier detection mismatch. In those cases,Class1HasRMHookIndicationshould be set tofalse.Class1HFLOCmdโ the command to set up hardware (RTS/CTS) flow control between DTE and DCE when operating in Class 1. This command is issued immediately after sending theClass1Cmdto switch the modem to Class 1 operation.Class1NFLOCmdโ the command to set up no flow control between DTE and DCE when operating in Class 1. This command is issued immediately after sending theClass1Cmdto switch the modem to Class 1 operation.Class1PageLengthSupportโ the coded value for page lengths supported by the modem. The only correct values and their meanings are exactly these:1โ A4 page length3โ both A4 and B4 page length7โ unlimited page length
Class1PageWidthSupportโ the coded value for page widths supported by the modem. The only correct values and their meanings are exactly these:1โ A4 page width3โ both A4 and B4 page width7โ all of A4, B4, and A3 page widths
Class1PPMWaitCmdโ the command used to stop and wait before sending the post page message, except before sendingEOP, whereClass1EOPWaitCmdis used instead. We have to make sure the high-speed carrier has completely stopped. Per T.30, Chapter 5, Note 4, this delay should be75 +/- 20 ms.Class1PhaseBRecvTimeoutCmdโ in the event that Phase B receive times out without receiving signaling, this command is issued after each attempt. Some callers can require the callee to do something (besides the usual fax signaling) to bridge the call.Class1ResponseWaitCmdโ the command used to stop and wait after sendingTCF, before attempting to receive a training response from the remote. Set this toAT+FTS=1if the modem respondsOKbefore actually dropping the high-speed TCF carrier.Class1Resolutionsโ a bitmapped (bit-or'd) value indicating the resolutions to be supported during facsimile operation. The individual resolutions follow Table 21/T.32 and are defined as follows:- Bit
0(0x00) โR8 x 3.85 l/mm, Normal - Bit
1(0x01) โR8 x 7.7 l/mm, Fine - Bit
2(0x02) โR8 x 15.4 l/mm, Superfine - Bit
4(0x04) โR16 x 15.4 l/mm, Hyperfine - Bit
8(0x08) โ200 dpi x 100 l/inch - Bit
16(0x10) โ200 dpi x 200 l/inch - Bit
32(0x20) โ200 dpi x 400 l/inch - Bit
64(0x40) โ300 dpi x 300 l/inch
- Bit
So like, a value of 3 would indicate support for normal, fine, and superfine resolutions. Math is giving โจ
Class1RMQueryCmdโ the command to send to the modem to get the list of supported reception bit-rates. If the parameter begins with a!, then the rest of the string is taken to be the modem response and no command is issued to the modem.Class1TCFWaitCmdโ the command used to stop and wait before sendingTCF, similar toClass1PPMWaitCmd. Per T.30, Chapter 5, Note 3, this delay should be75 +/- 20 ms.Class1TMQueryCmdโ the command to send to the modem to get the list of supported transmission bit-rates. If the parameter begins with a!, then the rest of the string is taken to be the modem response and no command is issued to the modem.Class1EOPWaitCmdโ the command used to stop and wait before sending the post page message, similar toClass1PPMWaitCmd. We allow a different setting in the case ofEOPthough, because empirically some machines may need more time. ๐ฎโ๐จClass1ModemHasDLEBugโ used to indicate that the modem does not correctly duplicateDLEcharacters in the V.21 communication to the DTE.Class1MsgRecvHackCmdโ if receive failures occur due to+FCERRORjust prior to image data reception, settingClass1MsgRecvHackCmdtoAT+FRS=1may help.Class1RecvAbortOKโ the time, in milliseconds, to wait for anOKresult code from the modem after aborting an HDLC frame receive (AT+FRH=3). If this number is zero, then the modem is assumed to not correctly implement aborting, and instead the driver will sendAT\nand wait500msfor anOKresult. If this number is zero, then the same is assumed for abortingAT+FRM=n. ๐ซ
Class1RecvIdentTimer โ how long, in milliseconds, you're gonna sit there waiting for that very first DCS when you're receiving a fax. CCITT recommendation T.30 says this should be the value of the T1 timer, periodt. BUT. If you're running one of those adaptive answering schemes โ you know, like the one described above under the AdaptiveAnswer parameter โ you might need to shorten this timer. She's flexible like that. ๐
Class1RestrictPoorDestinationsยน โ the threshold of destination audio quality corruption at which resolution support gets restricted to ``normal'' and color support gets switched off. Why? To reduce the amount of image data we even try to send to a destination with trash audio quality, which cuts the call duration down, which should make a successful session more likely. Iconic problem-solving honestly. ๐ธ
The threshold is a ratio โ an integer percentage โ of the data the destination flagged as corrupt versus the total data sent to that destination across the previous three fax sessions. And okay so, Class1RestrictPoorDestinations does work for destinations with a history of both ECM and non-ECM sessions, but the ECM session history is preferred and weighted considerably higher than the non-ECM session history. ECM stays the main character. ๐
Class1RestrictPoorSenders โ same energy, sender edition. This is the threshold of sender audio quality corruption at which resolution support gets restricted to ``normal'' and color support gets disabled. The goal is to reduce the amount of image data a sender with poor audio quality will try to transmit, cutting call duration and improving the odds of a successful session. ๐ซถ
The threshold is the ratio, expressed as an integer percentage, of corrupt data received compared to total data received from the current sender in the previous three fax sessions. Heads up though: Class1RestrictPoorSenders requires a CallIDType of ``calling-number'' to be configured, otherwise it can't match a sender to an entry in the info database. No CallIDType, no vibes. ๐ฆ
Class1RMPersistence โ how many times we attempt to receive the high-speed data carrier (which results in +FCERROR) before we go ahead and attempt low-speed message carrier reception. Some modems are quick to (maybe incorrectly ๐ญ) return +FCERROR, and for those lil guys you want a value of 2 or 3. For modems that aren't quick about it, use 1. Tuning this right gives you a kind of "adaptive reception control" for modems that accurately return +FCERROR without supporting Class1AdaptRecvCmd. And for modems that do support Class1AdaptRecvCmd, Class1RMPersistence should probably not be set at 1 โ although honestly +FCERROR should almost never happen with those modems anyway.
If your modem doesn't support reporting +FCERROR or adaptive reception control at all, then Class1RMPersistence should probably be set at 0, which shortens the timeout spent looking for the high-speed data carrier โ increasing the likelihood of recovery from any dissynchronization. But when Class1RMPersistence is anything other than 0, it's assumed that +FCERROR reporting or Class1AdaptRecvCmd is functional, so the timeout looking for the high-speed data carrier gets lengthened. Pick your fighter. ๐
Class1SwitchingCmd โ the command used to make sure the sending facsimile device has turned its modulator off (i.e. loss-of-carrier), exactly as recommended by T.31: Appendix II.1. โจ
Class1SendNSF โ whether or not to send an NSF signal when answering a fax call. That's it, that's the whole thing. ๐
Class1SFLOCmd โ the command to set up software (XON/XOFF) flow control between DTE and DCE when operating in Class 1. This one gets issued immediately after sending the Class1Cmd to flip the modem into Class 1 operation. Timing is everything bestie. โญ
Class1SSLFaxCert โ the relative path to the PEM certificate file for SSL Fax use. Normally this is created for you by faxsetup(8C). ๐
Class1SSLFaxClientTimeout โ the time, in milliseconds, that the SSL Fax server should wait for the client connection to complete before it gives up on SSL Fax and proceeds with a traditional fax operation. ๐ง
Class1SSLFaxInfo โ the formatted hostname and port number for the SSL Fax connection for this modem. (And yes, every modem should use a different port number, don't be messy.) This tells the remote system how to connect through the IP network to this system acting as an SSL Fax server. ๐ฅ
Firewalling and port forwarding should be carefully addressed prior to using this configuration. Do not skip this step, I'm literally begging. ๐ญ
The format for Class1SSLFaxInfo is <hostname>:<port>. During fax protocol, this information gets made into a URL by prepending ssl://<passcode>@ and it's communicated as part of CSA and TSA signals for SSL Fax. (<passcode> is a string of random characters, very mysterious of it.)
<hostname> may be specified as an IP address โ however, in those cases it should be bracketed, like this: [<address>]:<port>. This prevents confusion, especially with IPv6 addresses. ๐
Either the sender or the receiver (or both!) must signal an SSL Fax URL in order for SSL Fax to operate at all. And if no Class1SSLFaxInfo is configured for one system, then that system is always dependent on the remote systems to operate as the SSL Fax server. No solo missions. ๐
Class1SSLFaxProxy โ the formatted password, hostname, and port number (<passcode@<hostname>:<port>) for an SSL Fax proxy connection, to be used if no Class1SSLFaxInfo is configured. This makes HylaFAX establish an outbound SSL Fax connection to a configured SSL Fax proxy server when fax connections to remote systems support SSL Fax. The proxy server then hands the proxied SSL Fax URL back to HylaFAX, which uses it in the CSA and TSA signals for SSL Fax. Middleman but make it slay. ๐
Class1SSLFaxServerTimeout โ the time, in milliseconds, that the SSL Fax client should wait for the connection to the server to complete before abandoning SSL Fax and proceeding with a traditional fax operation. Usually this has to be shorter than 3 seconds. Clock's ticking bestie โณ
Class1SSLFaxSupport โ whether or not to enable SSL Fax support. Toggle away. โจ
Class1TCFMaxNonZero โ the maximum percentage of non-zero data bytes permitted in an acceptable received TCF. Important note: this number does not include any leading non-zero data in the received data. See also Class1TCFMinRun. ๐ธ
Class1TCFMinRun โ the duration, in milliseconds, of the minimum run of zero data in an acceptable received TCF. This value should be specified according to a 1.5 second transmission of zero data, meaning it should be between 0 and 1500. See also Class1TCFMaxNonZero and Class1TCFMinRunECMMod. ๐ฆ
Class1TCFMinRunECMMod โ the factor by which Class1TCFMinRun should be modified in the case of an ECM session. Since ECM protocol allows retransmissions, it's commonly faster to accept a lesser-quality data stream and deal with the subsequent retransmissions than it is to let the communication speed slow down โ where the demodulation may still not produce an ideal data stream anyway. So like, why bother. ๐
Class1TCFRecvHackCmd โ if you're getting receive failures due to +FCERROR right before TCF data reception, setting Class1TCFRecvHackCmd to AT+FRS=1 may help. It's a hack, it's in the name, but it works. ๐
Class1TCFRecvTimeout โ the maximum time to wait, in milliseconds, for the first byte, and again for the entirety of the Training Check (TCF) message data that gets received during the training phase of the facsimile reception protocol. Two waits, one parameter. ๐
Class1TMConnectDelay โ the time, in milliseconds, to delay after receiving CONNECT following +FTM before sending image data. Here's the lore: T.31 8.3.3 requires the modem to respond with CONNECT before the modulation training pattern. But if the modem can't buffer all the data sent to it before successful modulation training, then data โ especially during TCF, since it's so short โ could be lost. ๐ญ
Many modems reasonably do not follow T.31 in this regard, and thus the default is zero; however, using it with such modems would likely have a negligible effect. And when you're using modems that can buffer data during the training period, the default is also functional. So it's giving "everyone's fine either way". ๐ซถ
The modulator training time period varies by modulation and bitrate. V.17 fast train and V.29 both take less than 400 ms. However, V.27ter can take twice that long, and V.17 slow train can take four times as long. So the early CONNECT stipulation by T.31 8.3.3 becomes programmatically cumbersome for the DTE. Not the vibe. ๐ฎโ๐จ
T.31 8.3.3 also requires the modem to transmit constant ones after modulator training completes and before the DTE supplies data. Because of that, some receivers have become dependent on seeing a 1-to-0 bit transition at the outset of Phase C ECM data โ and honestly, that same expectation for TCF would not be surprising either, since both Phase C ECM and TCF involve predictable patterns. So, when not using SSL Fax or SuperG3 V.34-Fax, HylaFAX transmits a single byte of ones at the outset of both TCF and Phase C ECM image data to make sure there's a 1-to-0 bit transition. โญ
Such a thing does not seem necessary at the outset of non-ECM Phase C data, though โ that data pattern isn't so predictable, and any data loss is likely to go unnoticed anyway. โจ
Class1ValidateV21Frames โ whether or not to use the FCS bits of received V.21 HDLC frames to check the validity of the frame itself. Most Class 1 modems perform this check independently (per T.31 7.4) and don't require this feature to be enabled. So like, it's there if you need it bestie. ๐
๐ CLASS 2 AND 2.0 MODEM CONFIGURATION PARAMETERS ๐
The following parameters are specific to the configuration of Class 2- and Class 2.0-style modems. Different modem, different rules. ๐
Class2Cmd โ the command to set the modem into Class 2/2.0 operation. The switch-flipper. ๐
Class2AbortCmd โ the command to use to abort an established session. And listen: after using this command to abort a session, the fax software will send ModemOnHookCmd and then reset the modem by dropping DTR. So it's a whole sequence, not just a one-and-done. ๐ฆ
Class2APCmd โ a largely unused option for modems supporting ITU-T.32, Class 2.1, standards. This command would be used to enable sending and receiving SUB, SEP, and PWD frames. Would. If you used it. Which, largely, you don't. ๐
Class2APQueryCmdโ the lowkey forgotten one ๐ it's a mostly-unused option for modems that ride with ITU-T.32, Class 2.1, standards. It'd be the command you use to query the capabilities of sending and receiving SUB, SEP, and PWD frames. If your modem doesn't support anyClass2APQueryCmd, just set it tononeand move on bestie ๐ซถClass2BORCmdโ this sets the bit order of sent and received facsimile data. Normally you'd useAT+FBOR=0so data goes out and comes in as direct bit order (LSB2MSB). But some modems, like the Everex 24/96D, have to use reversed bit order for Phase B and D data exchanges, otherwise a bug drops straight-up garbage into the padding of EOL codes ๐ญ. Whatever bit order this command picks, it must match up with theModemSendFillOrderandModemRecvFillOrderparameters. no cap.Class2BUGCmdโ turns tracing of HDLC frames (sent + received by the modem) on or off. That tracing info is supposed to come back to the host in+FHR:and+FHT:status strings. Heads up though: lots of Class 2 modems don't support this at all, and it's basically a diagnostic thing. If your modem has zero support, usenone๐Class2CIGCmdโ the command that sets a polling identifier. Your string gets inserted into the format%s="<id>".Class2CQCmdโ the command that sets up the parameters for copy quality checking. Say, for an Everex 24/96D you might set this toAT+FCQ=1\nAT+FBADMUL=20\nAT+FBADLIN=10. You should configureClass2CQCmdto set up all the available copy quality services thatClass2CQQueryCmdsays you've got. Wanna disable some of those available features? ConfigureClass2CQQueryCmdwith a!, then setClass2CQCmdto match โจClass2CQQueryCmdโ the command you send to the modem to get the copy quality capabilities string. Fun trick: if the parameter starts with a!, then the rest of the string is taken as the capabilities string and no command goes to the modem at all. That lets you pair it withClass2CQCmdto force copy quality checking to happen in the server instead of the modem. PeepPercentGoodLinesandMaxConsecutiveBadLinesfor the server-side copy quality checking params ๐. Oh and โ if copy quality checking is configured to be done by the modem, then it is not done by the server. one or the other, bestie.Class2CRCmdโ the command used to enable the reception of facsimile.Class2DCCCmdโ the command used to set modem capabilities. Inserted into the format%s=vr,br,wd,ln,df,ec,bf,st.Class2DCCQueryCmdโ the command you send to the modem to get the Class 2/2.0 capabilities. Same little trick as before: if the parameter starts with a!, the rest of the string is taken as the capabilities string and nothing gets sent to the modem ๐Class2DDISCmdโ the command to set session parameters before dialing. Inserted into the format%s=vr,br,wd,ln,df,ec,bf,st. Setting this parameter turns on support for those Class 2 modems that don't properly implement theAT+FDIScommand, by setting up session parameters before the telephone gets dialed. iconic workaround fr.Class2DISCmdโ the command used to set the current session parameters. Inserted into the format%s=vr,br,wd,ln,df,ec,bf,st.Class2ECMTypeโ the way the EC parameter in the modem DCC response gets interpreted actually differs between the Class 2 spec (that's2) and the Class 2.0 spec (that's2.0). This config parameter lets the administrator pick which type to use. By default, the spec type that corresponds is the one used ๐Class2HexNSFโ whether or not to parse the NSF strings the modem reports using hexadecimal values. By default, they are parsed as hexadecimal values.Class2HFLOCmdโ the command to set up hardware (RTS/CTS) flow control between DTE and DCE while running in Class 2/2.0. It gets issued right after sending theClass2Cmdto flip the modem into Class 2/2.0 operation. For Class 2.0 operation the default isAT+FLO=2.Class2JBIGSupportโ whether or not to enable support for T.85 monochrome facsimile with JBIG compression. Your options:truefor support in both sending and receiving,falsefor no support at all,sendfor sending only, andreceivefor receiving only. If the modem supports JBIG and a compatible JBIG library was found during the build process, then send support is on by default. And if the modem supports JBIG and the TIFF tools were found during the build to support JBIG, then receive support is on by default ๐ธClass2JPEGSupportโ whether or not to enable and actually utilize the JPEG support found in the modem.Class2LIDCmdโ the command used to set the local identifier string. This string is inserted into the format%s="<id>"Class2MINSPCmdโ the command used to set the minimum acceptable speed to be negotiated for transmitting page data. This string is inserted into the format%s=<speed>Class2NFLOCmdโ the command to set up no flow control between DTE and DCE while running in Class 2/2.0. It's issued immediately after sending theClass2Cmdto flip the modem into Class 2 operation. For Class 2.0 operation the default isAT+FLO=0.Class2NRCmdโ (Class 2.0 only, bestie ๐) the command to set up negotiation message reporting. For the Class 2.0 driver to work correctly, this command must enable the reporting of: receiver parameters, transmitter parameters, and ID strings. It is not necessary to enable reporting of non-standard frames for correct Class 2.0 driver operation.Class2PACmdโ another largely-unused option for modems that support ITU-T.32, Class 2.1, standards. It'd set up the polling address string that's enabled byClass2APCmd.Class2PHCTOCmdโ the command to set the Phase C timeout parameter (in seconds). If your modem doesn't support anyClass2PHCTOCmd, usenone๐Class2PIECmdโ (Class 2.0 only) the command to control procedure interrupt handling. Procedure interrupts should be disabled, because HylaFAX doesn't provide any mechanism for dispatching procedure interrupts to an administrator. so like, don't.Class2PTSCmdโ the command to set the received page status code. When copy quality checking happens in the host, this command can control the post-page response delivered to the sender. But beware โ ๏ธ some modems don't implement this command properly โ in that case the server should be configured to not do copy quality check. Check out thePercentGoodLinesandMaxConsecutiveBadLinesparameters to understand how to defeat copy quality checking.Class2PTSQueryCmdโ the command to query the received page status code. You can use it to figure out the post-page response that came back from the receiver. Beware again though ๐ some modems don't implement this one properly either, and in that case you should set this setting tonone.Class2PWCmdโ yet another largely-unused option for modems supporting ITU-T.32, Class 2.1, standards. It'd set up the password string enabled byClass2APCmd.Class2RecvDataTriggerโ the character you send to the modem to trigger it to send received data from the modem over to the host. In draft specification 2388-A this character is specified as DC1 (octal 21), and in the 2388-B specification it's DC2 (octal 22). Most Class 2 modems accept DC1, or both DC1 and DC2. Some modems, though, only accept DC2 ๐ญ. Note that string parameters can use C-style escape sequences, so DC2, for example, would be specified as"\022".Class2RELCmdโ the command to enable delivery of byte-aligned EOL codes in received facsimile. If this parameter is defined, then received facsimile data gets marked to indicate that EOL codes are byte-aligned; otherwise they'll be marked as not (necessarily) having byte-aligned codes.Class2RTFCCโ whether or not to enable MultiTech's Real-Time Fax Compression Conversion, which shows up in later firmware revisions for the MT5634ZBA-V92, MT5634ZPX-PCI-V92, and other models. RTFCC lets HylaFAX convert the image compression between MH, MR, and MMR formats no matter howfaxqformatted the image file ๐ฅ. If RTFCC is available with your firmware, then the response toAT+FFC=?is non-zero. Note that when you're using RTFCC, the compression format of the file gets ignored โ so the-1,-2, and-3options forsendfax,ps2fax, and others will not influence the actual negotiated session parameters. iykyk.Class2SACmdโ a largely-unused option for modems supporting ITU-T.32, Class 2.1, standards. It'd set up the destination subaddress string enabled byClass2APCmd.Class2SendRTCโ whether or not to append an explicit "Return To Control" (RTC) signal to the page data when transmitting. The Class 2 and Class 2.0 specs (that's SP-2388-A and TIA/EIA-592) state that the modem will append RTC when it receives the post-page message command from the host โ this parameter exists just in case your modem doesn't correctly implement that ๐ซถClass2SFLOCmdโ the command to set up software (XON/XOFF) flow control between DTE and DCE while running in Class 2/2.0. It gets issued immediately after sending theClass2Cmdto flip the modem into Class 2/2.0 operation. For Class 2.0 operation the default isAT+FLO=1.Class2SPLCmdโ the command to enable a polling request. If your modem doesn't support anyClass2SPLCmd, the valuenoneis there for you โจClass2TBCCmdโ the command you use to turn on stream-mode communication between the host and the modem. If your modem doesn't support anyClass2TBCCmd, you can use the valuenone. slay ๐Class2UseLineCountโ whether or not to use the line count that the modem firmware decoder reports to HylaFAX. simple as that ๐Class2UseHexโ whether or not to parse the capability strings your modem reports using hexadecimal values. By default, they're parsed as decimal values. math girlie moment ๐ขClass2XmitWaitForXONโ whether or not to wait for an XON character from the modem before sending facsimile data to the modem for transmission. important note, bestie: this is only relevant for modems that conform to the Class 2 spec (i.e.SP-2388-A). The Class 2.0 specification states that the host may transmit data immediately upon receivingCONNECTand that no XON character will be sent to the host. ๐ซถ
๐ PAGER-RELATED CONFIGURATION PARAMETERS ๐
These parameters are specific to the configuration and operation of the IXO/TAP and UCP support for sending pager messages and GSM SM. Parameters not used for UCP are marked with (IXO/TAP only). iykyk โจ
PagerSetupCmdsโ the commands to send to a modem to prepare the modem for a call to a pager service provider. Typically these commands direct the modem to communicate with the service provider at 300 bps using the V.21 protocol. Per-service provider command strings can be set up in the info database; seehylafax-info(5F). ๐PagerMaxMsgLengthโ the maximum length for a pager text message. Messages longer than this number are truncated. Per-service provider message lengths can be set up in the info database; seehylafax-info(5F). โ๏ธIXOServiceโ(IXO/TAP only)the service identification string transmitted as part of the IXO/TAP protocol. ๐IXODeviceIDโ(IXO/TAP only)the terminal device identification string transmitted as part of the IXO/TAP protocol. ๐ฅ๏ธIXOMaxUnknownโ the maximum number of unrecognized messages that will be accepted at various stages of the IXO/TAP protocol before the sender will abort and hang up the phone. no cap, it hangs up ๐ซIXOIDProbeโ(IXO/TAP only)the time, in seconds, between sending a\rduring the initial ID recognition sequence of the IXO/TAP protocol. โฑ๏ธIXOIDTimeoutโ(IXO/TAP only)the maximum time, in seconds, to wait for the initial ID response from the service provider. โณIXOLoginRetriesโ(IXO/TAP only)the maximum number of attempts to login to a service provider. ๐IXOLoginTimeoutโ(IXO/TAP only)the maximum time, in seconds, to wait to complete the login procedure. ๐ฐ๏ธIXOGATimeoutโ(IXO/TAP only)the maximum time, in seconds, to wait for a Go-Ahead message from the service provider. ๐ฆIXOXmitRetriesโ the maximum number of times to try sending a text message block in a single call. ๐คIXOXmitTimeoutโ the maximum time, in seconds, to try transmitting a text message block. โIXOAckTimeoutโ(IXO/TAP only)integer30IXO: max time to wait for msg block ack (secs)โ the maximum time, in seconds, to wait for an acknowledgement to a transmitted message. ack wait vibes ๐
๐ฆ PROTOTYPE CONFIGURATION FILES ๐ฆ
Per-modem configuration files are typically derived from prototype files that have been created for known modems. These prototype files are kept in the config subdirectory and, by convention, have names that identify a brand or type of modem and the DTE-DCE flow control scheme the prototype files configures. The faxaddmodem(8C) program that is used to configure a modem for use with HylaFAX selects a prototype configuration file using information retrieved from the modem and comments embedded in the prototype files. For Class 1 modems the product ID code returned by the command ATI0 and the response from the command ATI3 are used to select a prototype configuration file, while for Class 2 modems the manufacturer and model as returned by AT+FMFR? and AT+FMDL?, respectively, are used (or AT+FMI? and AT+FMM? for Class 2.0 modems). the detective work is real ๐
A Class 1 prototype configuration file is identified for use by faxaddmodem by searching for a comment of the form:
# CONFIG:CLASS1:144:.*:RTSCTS: Manufacturer='AT&T' Model=Dataport
In this example 144 is the product ID code for an AT&T DataPort modem, .* is a regular expression matched against the result string returned by the ATI3 command, and RTSCTS indicates the modem is configured to use hardware flow control during fax operation. The remainder of the line is evaluated by the sh(1) and used to specify the modem's manufacturer and model (since Class 1 modems do not have standard commands to query this information). AT&T DataPort said hello ๐
Class 2 and 2.0 prototype configuration files match the string manufacturer-model-flowcontrol against a sh(1) glob pattern specified in the configuration file, where manufacturer and model are the strings returned by querying the modem and flowcontrol is either RTSCTS for hardware flow control or XONXOFF for software flow control. For example:
# CONFIG: CLASS2: ZyXEL*-RTSCTS
# CONFIG: CLASS2.0: USRobotics*-XONXOFF
are configuration comments that appear in the prototype file for a ZyXEL 1496E with Class 2 support, and for a US Robotics Courier modem with Class 2.0 firmware. ZyXEL and US Robotics eating โจ
The faxaddmodem program merges server-specific configuration parameters into a prototype configuration according to comments placed in the prototype file. All lines between BEGIN-SERVER and END-SERVER comments are placed with the appropriate server configuration parameters. Note that this means modem-related configuration parameters must be placed outside this area of the file. so keep modem stuff out of that zone, bestie ๐ง
๐ SEE ALSO ๐
faxaddmodem(8C)faxq(8C)faxgetty(8C)faxsend(8C)hylafax-server(5F)
and that's a wrap, bestie ๐ the footer says this page's source/version is $Date: 2013-02-26 15:46:36 -0800 and it's the HYLAFAX-CONFIG(5F) manual, dated Tue, 26 Feb 20... vintage 2013 energy, periodt โจ๐ซถ
๐ฆ where this page comes from
- alpine 3.24: hylafaxplus-doc 7.0.11-r0 ยท MIT
- fedora 43: hylafax+ 7.0.11-4.fc43 ยท libtiff AND LicenseRef-Callaway-BSD-with-advertising
- fedora 43: hylafax+ 7.0.11-4.fc43 ยท libtiff AND LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hylafax+ 7.0.11-5.fc44 ยท libtiff AND LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hylafax+ 7.0.11-5.fc44 ยท libtiff AND LicenseRef-Callaway-BSD-with-advertising
- nixos 26.05: hylafaxplus 7.0.11
- nixpkgs unstable: hylafaxplus 7.0.11
- Copyright (c) 1990-1996 Sam Leffler
- Copyright (c) 1991-1996 Silicon Graphics, Inc
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms