# pragma ident "@(#)bnu:Hangups	1.1 91/11/07 "
#
# Copyright 1991 Apple Computer, Inc.
# All Rights Reserved.
#
# -----------------------------------------------------------------------------
# Entries in this file specify the conversation that must take place before a
# line can be closed.  Each entry has the following format:
#
#     Name Expect-Send [Expect-Send]
#
#     Name
#         This field is a string that identifies this entry.  This name must
#         match that of the HANGUP sequence in the Dialers file.
#
#     Expect-Send
#         These are expect-send sequences like in the 'Systems' file and they
#         use the same escape characters as well.

# Apple Data Modem 2400
apple_data_modem_2400 \
  ERROR ERROR 				# It's an error if we see "ERROR" \
  "" \^E5\$\c				# setup a shorter expect time \
  EXIT OK				# we'll exit if we get OK \
  "" AT\c\r-OK-AT\c\r			# check for that OK \
  EXIT ""				# don't exit on OK anymore \
  "" +++\c\r				# try the +++ sequence \
  OK-+++-OK-+++-OK \c			# ... again and again... \
  "" ATH				# hang up connection \
  OK

# Apple Personal Modem
apple_personal_modem \
  ERROR ERROR 				# It's an error if we see "ERROR" \
  "" \^E5\$\c				# setup a shorter expect time \
  EXIT OK				# we'll exit if we get OK \
  "" AT\c\r-OK-AT\c\r			# check for that OK \
  EXIT ""				# don't exit on OK anymore \
  "" +++\c\r				# try the +++ sequence \
  OK-+++-OK-+++-OK \c			# ... again and again... \
  "" ATH				# hang up connection \
  OK

