# $Id: zyxel-1496e-1,v 1.2 2001/06/17 18:02:07 darren Exp $
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1990-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics, Inc.
# 
# Permission to use, copy, modify, distribute, and sell this software and 
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
# 
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
# 
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
# OF THIS SOFTWARE.
#

#
# Class 1 configuration for a ZyXEL U1496.  Class 1
# support was introduced in firmware revision 6.14.
#
# This configuration file sets up the ZyXEL to run at 38.4 for
# both sending and receiving.  RTS/CTS flow control is used on
# the tty port by default.
#
# CONFIG:CLASS1:1496:.*:.*: Manufacturer=ZyXEL Model=U1496
# CONFIG:CLASS1:33603:.*:.*: Manufacturer=ZyXEL Model=U336S
#
# BEGIN-SERVER
# END-SERVER
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:		Class1		# use class 1 interface
ModemRate:		38400		# 38.4 works fine
ModemFlowControl:	rtscts		# default
#
ModemNoFlowCmd:		AT&H0		# disable flow control
ModemHardFlowCmd:	AT&H3		# hardware flow control
ModemSoftFlowCmd:	AT&H4		# software flow control
ModemSetupDTRCmd:	AT&D2		# DTR off causes modem to hang up
ModemSetupDCDCmd:	AT&C1		# DCD tracks carrier
ModemSetupAACmd:	AT+FAA=1	# enable in current class
#
# Additional reset commands:
#
# &B1	  DTE-DCE rate is fixed at DTE setting
# &N0	  Auto-negotiate highest possible DCE-DCE link rate
# &S0	  DSR always on
# *F0	  Deny remote configuration
# S38.3=1 DCD on/off sequence follows UNIX standard
# 
ModemResetCmds:		AT&B1&N0&S0*F0S38.3=1
#
# We normally append the "@" symbol to the dial string so that
# the modem will wait 5 seconds before attempting to connect
# and return result codes that distinguish between no carrier
# and no answer.  This makes it possible to avoid problems with
# repeatedly dialing a number that doesn't have a fax machine
# (kudos to Stuart Lynne for this trick.)
#
# Unfortunately, ZyXEL's don't seem to detect a busy signal when
# the @ symbol is used to terminate the dialing string.  Instead
# calls to a busy line come back with a NO CARRIER status which
# causes us to toss the job.  Consequently we fall back to the
# normal method and raise the number of retries on a no carrier
# status.  ZyXEL claims that this behaviour is not a bug, but 
# rather that we are requesting ``an enhancement'' (never mind
# that their manual says that it should work).
#
ModemDialCmd:		ATDT%s		# no '@' 'cuz then busy not recognized
NoCarrierRetrys:	3		# retry 3 times on no carrier
#
ModemSetVolumeCmd:	"ATM0 ATM1L1 ATM1L3 ATM1L5 ATM1L7"
#
ModemMfrQueryCmd:	AT+FMFR?
ModemModelQueryCmd:	"!"
ModemRevQueryCmd:	AT+FREV?
#
# NB: this works around a bug in the 6.14 firmware; the modem does not
#     not deliver the FCS bytes in the received HDLC frame, per the spec.
#
Class1FrameOverhead:	2		# 6.14 firmware does not include FCS
#
# Caller ID configuration setup.
#
#QualifyCID:		etc/cid		# CID access control list file
#CIDNumber:		"CALLER NUMBER: " # pattern string for phone number info
#CIDName:		"CALLER NAME: "	# pattern string for identity info
#
PagerSetupCmds:		AT&K0&N15	# use V.22 at 1200 bps (PageNet)
