File: dial

package info (click to toggle)
uucp 1.07-31
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,180 kB
  • sloc: ansic: 53,821; sh: 4,477; makefile: 202; perl: 199
file content (35 lines) | stat: -rw-r--r-- 1,360 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This is an example of dial, the dialer configuration file for Taylor
# UUCP.  To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# Everything after a '#' character is a comment.  To uncomment any of
# the sample lines below, just delete the '#'.

# All dialers named in the port (or sys) file must be described in the
# dial file.  It is also possible to describe a dialer directly in the
# port (or sys) file.

# This is a typical Hayes modem definition.
dialer hayes

# The chat script used to dial the phone.
# This means:
#  1) expect nothing (i.e., continue with step 2)
#  2) send "ATZ", then a carriage return, then sleep for 1 to 2
#     seconds.  The \c means to not send a final carriage return.
#  3) wait until the modem echoes "OK"
#  4) send "ATDT", then the telephone number (after translating any
#     dialcodes).
#  5) wait until the modem echoes "CONNECT"
chat "" ATZ\r\d\c OK ATDT\T CONNECT

# If we get "BUSY" or "NO CARRIER" during the dial chat script we
# abort the dial immediately.
chat-fail BUSY
chat-fail NO\sCARRIER

# When the call is over, we make sure we hangup the modem.
complete \d\d+++\d\dATH\r\c
abort \d\d+++\d\dATH\r\c