#
# File: /etc/uucp/dial
#	==============
# 
# Example by Andreas Klemm <andreas@knobel.knirsch.de>
#
# Based on Taylor uucp documentation 1.04
#
# Tue Jan 25 19:43:36 GMT+0100 1994
#
# Description:
# -----------
#
# The default is the file `dial' in the directory /etc/uucp. 
# This file describe dialing devices (modems)
#

#
# Name of this dialer definition for use in the 
# portfile: /etc/uucp/port.
#

dialer hayes

#
# CHAT SEQUENCE WITH MODEM
# ------------------------
#
#	Here a short description about modem configuration
#	--------------------------------------------------
#
#	BTW: you should be able to connect to you modem using cu
#	     (after configuring /etc/uucp/port) using the command:
#
#		cu -lcua1
#
#	ATZ -	loads the saved modem configuration from non volatile ram.
#		Using ATZ we assume, that the modem has already proper settings !
#
#	If you are unsure or get bad results, then set the modem to factory
#	settings first ! 
#
#	If you have a modem that is compatible with the hayes command set
#	(standard) this is done by the modem command:
#		AT&f
#
#	You should save this configuration with:
#		AT&w
#
#	Another good idea is to check, if the modem is setup to use
#	hardware handshaking flow control (RTS/CTS handshaking)
#	instead of using XON/XOFF protocol (RTF Modem Manual ;-)
#
#	The settings of your serial line should include
#	crtscts, -ixon, -ixany, -ixoff !
#
#	To watch the current settings for com2: type: stty -a < /dev/cua1
#
#		speed 9600 baud; rows 0; columns 0; line = 0;
#		intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
#		eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
#		lnext = ^V; flush = ^O; min = 1; time = 0;
#		-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
#		-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
#		-iuclc -ixany -imaxbel
#		opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
#		-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
#		-echoprt -echoctl -echoke
#
#	to change the serial line settings - really _only_ if needed:
#
#		stty crtscts -ixon -ixoff -ixany < /dev/cua1
#
#
# - Chat sequence for pulse dialing (Germany,...)
#

chat "" ATZ\r\c OK \dATDP\D\r\c CONNECT

#
# - if you have TOUCH TONE DIALING disable chat line above with '#'
#   and uncomment the following chat sequence:
#
# chat "" ATZ\r\c OK \dATDT\D\r\c CONNECT
#

#
# Which modem response causes a chat fail
#

chat-fail BUSY
chat-fail NO\sCARRIER

#
# What to do with the modem if a call is complete
#

complete \d\d+++\d\dATE0Q1H0Z\r\c

#
# What to do with the modem if a call is aborted
#

abort \d\d+++\d\dATE0Q1H0Z\r\c

#
# OPTIONAL more dialer definitions ....
#
# ...
