zyxel-1496e-1
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:4k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. # $Id: zyxel-1496e-1,v 1.2 2007/06/23 16:34:16 faxguy Exp $
  2. #
  3. # HylaFAX Facsimile Software
  4. #
  5. # Copyright (c) 1990-1996 Sam Leffler
  6. # Copyright (c) 1991-1996 Silicon Graphics, Inc.
  7. # HylaFAX is a trademark of Silicon Graphics, Inc.
  8. # Permission to use, copy, modify, distribute, and sell this software and 
  9. # its documentation for any purpose is hereby granted without fee, provided
  10. # that (i) the above copyright notices and this permission notice appear in
  11. # all copies of the software and related documentation, and (ii) the names of
  12. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  13. # publicity relating to the software without the specific, prior written
  14. # permission of Sam Leffler and Silicon Graphics.
  15. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  16. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  17. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  18. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  19. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  20. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  22. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  23. # OF THIS SOFTWARE.
  24. #
  25. #
  26. # Class 1 configuration for a ZyXEL U1496.  Class 1
  27. # support was introduced in firmware revision 6.14.
  28. #
  29. # This configuration file sets up the ZyXEL to run at 38.4 for
  30. # both sending and receiving.  RTS/CTS flow control is used on
  31. # the tty port by default.
  32. #
  33. # CONFIG:CLASS1:1496:.*:.*: Manufacturer=ZyXEL Model=U1496
  34. # CONFIG:CLASS1:33603:.*:.*: Manufacturer=ZyXEL Model=U336S
  35. # CONFIG:CLASS1:1503:.*:.*: Manufacturer=ZyXEL Model=U90E
  36. # CONFIG:CLASS1:1500:.*:.*: Manufacturer=ZyXEL Model="Omni56K Plus"
  37. # CONFIG:CLASS1:.*:ZyXEL.*:.*: Manufacturer=ZyXEL Model=Unspecified
  38. #
  39. # BEGIN-SERVER
  40. # END-SERVER
  41. #
  42. # Modem-related stuff: should reflect modem command interface
  43. # and hardware connection/cabling (e.g. flow control).
  44. #
  45. ModemType: Class1 # use class 1 interface
  46. ModemRate: 19200
  47. ModemFlowControl: rtscts # default
  48. #
  49. ModemNoFlowCmd: AT&H0 # disable flow control
  50. ModemHardFlowCmd: AT&H3 # hardware flow control
  51. ModemSoftFlowCmd: AT&H4 # software flow control
  52. ModemSetupDTRCmd: AT&D2 # DTR off causes modem to hang up
  53. ModemSetupDCDCmd: AT&C1 # DCD tracks carrier
  54. ModemSetupAACmd: AT+FAA=1 # enable in current class
  55. #
  56. # Additional reset commands:
  57. #
  58. # &B1   DTE-DCE rate is fixed at DTE setting
  59. # &N0   Auto-negotiate highest possible DCE-DCE link rate
  60. # &S0   DSR always on
  61. # *F0   Deny remote configuration
  62. # S38.3=1 DCD on/off sequence follows UNIX standard
  63. ModemResetCmds: AT&B1&N0&S0*F0S38.3=1
  64. #
  65. # We normally append the "@" symbol to the dial string so that
  66. # the modem will wait 5 seconds before attempting to connect
  67. # and return result codes that distinguish between no carrier
  68. # and no answer.  This makes it possible to avoid problems with
  69. # repeatedly dialing a number that doesn't have a fax machine
  70. # (kudos to Stuart Lynne for this trick.)
  71. #
  72. # Unfortunately, ZyXEL's don't seem to detect a busy signal when
  73. # the @ symbol is used to terminate the dialing string.  Instead
  74. # calls to a busy line come back with a NO CARRIER status which
  75. # causes us to toss the job.  Consequently we fall back to the
  76. # normal method and raise the number of retries on a no carrier
  77. # status.  ZyXEL claims that this behaviour is not a bug, but 
  78. # rather that we are requesting ``an enhancement'' (never mind
  79. # that their manual says that it should work).
  80. #
  81. ModemDialCmd: ATDT%s # no '@' 'cuz then busy not recognized
  82. NoCarrierRetrys: 3 # retry 3 times on no carrier
  83. #
  84. ModemSetVolumeCmd: "ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7"
  85. #
  86. ModemMfrQueryCmd: AT+FMFR?
  87. ModemModelQueryCmd: "!"
  88. ModemRevQueryCmd: AT+FREV?
  89. #
  90. # NB: this works around a bug in the 6.14 firmware; the modem does not
  91. #     not deliver the FCS bytes in the received HDLC frame, per the spec.
  92. #
  93. Class1FrameOverhead: 2 # 6.14 firmware does not include FCS
  94. #
  95. # Caller ID configuration setup.
  96. #
  97. #CallIDPattern: "CALLER NUMBER: " # pattern string for phone number info
  98. #CallIDPattern: "CALLER NAME: " # pattern string for identity info
  99. #
  100. PagerSetupCmds: AT&K0&N15 # use V.22 at 1200 bps (PageNet)