Hylafax - Sample Modem Config File

From OpenEMR Project Wiki

  1. $Id$
  2. HylaFAX Facsimile Software
  3. Copyright (c) 1990-1996 Sam Leffler
  4. Copyright (c) 1991-1996 Silicon Graphics, Inc.
  5. HylaFAX is a trademark of Silicon Graphics, Inc.
  6. Permission to use, copy, modify, distribute, and sell this software and
  7. its documentation for any purpose is hereby granted without fee, provided
  8. that (i) the above copyright notices and this permission notice appear in
  9. all copies of the software and related documentation, and (ii) the names of
  10. Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. publicity relating to the software without the specific, prior written
  12. permission of Sam Leffler and Silicon Graphics.
  13. THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  14. EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  15. WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  16. IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  17. ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  18. OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  20. LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  21. OF THIS SOFTWARE.
  1. Generic Class 1.0 modem configuration.
  2. EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP

CountryCode: 1 AreaCode: 813 FAXNumber: "(813) 374-2495" LongDistancePrefix: 1 InternationalPrefix: 011 DialStringRules: etc/dialrules ServerTracing: 1 SessionTracing: 11 RecvFileMode: 0600 LogFileMode: 0600 DeviceMode: 0600 RingsBeforeAnswer: 5 SpeakerVolume: on GettyArgs: "-h %l dx_%s" LocalIdentifier: "David Eschelbacher MD"" TagLineFont: etc/lutRS18.pcf TagLineFormat: "From %%l|%c|Page %%P of %%T" MaxRecvPages: 200

  1. Modem-related stuff: should reflect modem command interface
  2. and hardware connection/cabling (e.g. flow control).
  3. We use "ModemType: Class1" with "Class1Cmd: AT+FCLASS=1.0" for now

ModemType: Class1 # use this to supply a hint

  1. ModemRate: 19200 # rate for DCE-DTE communication
  2. ModemFlowControl: xonxoff # XON/XOFF flow control assumed
  3. ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem
  4. ModemSetupDCDCmd: AT&C1 # setup so DCD follows carrier
  5. GettyArgs: "-h %l dx_%s" # modem must auto-detect fax/data
  6. We can append the "@" symbol to the dial string so that
  7. the modem will wait 5 seconds before attempting to connect
  8. and return result codes that distinguish between no carrier
  9. and no answer. This makes it possible to avoid problems with
  10. repeatedly dialing a number that doesn't have a fax machine
  11. (kudos to Stuart Lynne for this trick.)
  12. NB: If you need to prefix phone numbers to get through a PBX,
  13. put it in the ModemDialCmd; e.g. "DT9%s@".
  14. ModemDialCmd: ATDT%s # T for tone dialing
  15. Other possible configuration stuff. The default strings are
  16. shown below. Only those that are different from the defaults
  17. need to be included in the configuration file.
  18. ModemResetCmds: "" # stuff to do when modem is reset
  19. ModemAnswerCmd: ATA # use this to answer phone
  20. ModemNoFlowCmd: AT&K # disable flow control cmd
  21. ModemHardFlowCmd: AT&K3 # hardware flow control cmd
  22. ModemSoftFlowCmd: AT&K4 # software flow control cmd
  23. ModemNoAutoAnswerCmd: ATS0=0 # disable auto-answer
  24. Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
  25. Note that we both turn the speaker on/off and set volume.
  26. ModemSetVolumeCmd: "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1"
  27. ModemEchoOffCmd: ATE0 # disable command echo
  28. ModemVerboseResultsCmd: ATV1 # enable verbose command results
  29. ModemResultCodesCmd: ATQ0 # enable result codes
  30. ModemOnHookCmd: ATH0 # place phone on hook (hangup)
  31. ModemSoftResetCmd: ATZ # do soft reset of modem
  32. ModemSoftResetCmdDelay: 3000 # pause after soft reset
  33. ModemWaitTimeCmd: ATS7=60 # wait 60 seconds for carrier
  34. ModemCommaPauseTimeCmd: ATS8=2 # comma pause time is 2 seconds
  35. ModemRecvFillOrder: LSB2MSB # bit order of received facsimile
  36. ModemSendFillOrder: LSB2MSB # bit order modem expects for transmit

Class1Cmd: AT+FCLASS=1.0 # command to enter class 1.0 Class1PPMWaitCmd: AT+FTS=7 # command to stop and wait before PPM Class1TCFWaitCmd: AT+FTS=7 # command to stop and wait before TCF Class1EOPWaitCmd: AT+FTS=9 # command to stop and wait before EOP Class1SwitchingCmd: AT+FRS=7 # command to stop and listen for silence Class1RecvAbortOK: 200 # wait 200ms for abort response Class1FrameOverhead: 4 # 4 byte overhead in recvd HDLC frames Class1RecvIdentTimer: 40000 # 35+5secs waiting for ident frames Class1TCFMaxNonZero: 10 # max 10% of data may be non-zero Class1TCFMinRun: 1000 # min run is 2/3rds of TCF duration

    1. AvantFAX

FaxRcvdCmd: bin/faxrcvd.php DynamicConfig: bin/dynconf.php UseJobTSI: true