1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2: <HTML>
3: <HEAD>
4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5: <TITLE>The included mpd.script</TITLE>
6: </HEAD>
7: <BODY text="#000000" bgcolor="#ffffff">
8:
9: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
10: <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
11: <b>:</b> <EM>The included <code>mpd.script</code></EM><BR>
12: <b>Previous:</b> <A HREF="mpd60.html"><EM>Errors</EM></A><BR>
13: <b>Next:</b> <A HREF="mpd62.html"><EM>Troubleshooting</EM></A>
14:
15:
16: <HR NOSHADE>
17: <H2><A NAME="61"></A>6.7. The included <code>mpd.script</code></H2>
18: <p>The <code>mpd.script</code> that ships with mpd can usually be used
19: as it is without modification for typical PPP applications.
20: This script defines the following labels:</p>
21: <p>
22: <dl>
23:
24: <dt><b><code>DialPeer</code></b><dd><p>This script causes mpd to attempt to identify the attached modem
25: or ISDN Terminal Adapter device, configure the device, and dial
26: a remote peer. This the label you want to use for the
27: <code>set modem script</code> when acting as a dialup client.</p>
28: <p>The variables that are used by this script are:</p>
29: <p>
30: <dl>
31:
32: <dt><b><code>$Telephone</code></b><dd><p>The telephone number to dial.</p>
33:
34: <dt><b><code>$DialPrefix</code></b><dd><p>Dialing prefix to get an outside line, if any.</p>
35:
36: <dt><b><code>$ConnectTimeout</code></b><dd><p>Time in seconds to wait for the modems to connect.
37: Default 45 seconds.</p>
38:
39: <dt><b><code>$SpeakerOff</code></b><dd><p>Set this to <code>yes</code> if you want to silence the modem speaker
40: while dialing.</p>
41:
42: <dt><b><code>$Serial230K</code></b><dd><p>If your serial port is capable of running at 230K baud,
43: set this to <code>yes</code>. Note: normal PC hardware is
44: not capable of 230K.</p>
45:
46: </dl>
47: </p>
48: <p>In addition, the following variables are required to be set
49: for ISDN terminal adapters:</p>
50: <p>
51: <dl>
52:
53: <dt><b><code>$TA_Bonding</code></b><dd><p>If the terminal adapter should do 2 B-channel multi-link
54: PPP, set this to <code>yes</code>. Note: a terminal adapter
55: doing multi-link PPP still <em>appears</em> to mpd as a
56: single link PPP connection and should be configured as
57: such.</p>
58:
59: <dt><b><code>$TA_NoDoubleTelno</code></b><dd><p>When <code>$TA_Bonding</code> is <code>yes</code>, do not double
60: the dialed number. Normally, in such situations mpd dials
61: using the command <code>ATDT${Telephone}&${Telephone}</code>.
62: If your <code>$Telephone</code> string already contains both
63: numbers, then set <code>$TA_NoDoubleTelno</code> to <code>yes</code>.</p>
64:
65: <dt><b><code>$TA_56K</code></b><dd><p>If you need to restrict the B channels to to 56K, set this
66: to <code>yes</code>.
67: Only necessary for some North American ISDN lines.</p>
68:
69: <dt><b><code>$TA_VoiceCall</code></b><dd><p>If you need to place a voice mode call, set this to <code>yes</code>.
70: Only necessary for some North American ISDN lines.
71: Not all terminal adapters support this.</p>
72:
73: <dt><b><code>$TA_AuthChap</code></b><dd><p>Some older terminal adapters require you to specify <em>a priori</em>
74: whether CHAP or PAP authentication will be requested by the remote
75: side. Set to <code>yes</code> to tell the terminal adapter to use CHAP.</p>
76:
77: <dt><b><code>$TA_SwitchType</code></b><dd><p>Set this to your ISDN line's switch type. Should be one
78: of <code>NI-1</code>, <code>DMS-100</code>, <code>5ESS P2P</code>,
79: or <code>5ESS MP</code>.
80: Only required for North American ISDN.</p>
81:
82: <dt><b><code>$TA_Dirno1</code></b><dd>
83: <dt><b><code>$TA_Dirno2</code></b><dd>
84: <dt><b><code>$TA_SPID1</code></b><dd>
85: <dt><b><code>$TA_SPID2</code></b><dd><p>Set these to your ISDN line's directory numbers and SPID's
86: for both B channels. Only required for North American ISDN.</p>
87:
88: </dl>
89: </p>
90:
91: <dt><b><code>AnswerCall</code></b><dd><p>This is an <b>idle script</b> that waits for an incoming call
92: and then answers it. The variables that are used by this script are:</p>
93: <p>
94: <dl>
95:
96: <dt><b><code>$ConnectTimeout</code></b><dd><p>Time in seconds to wait for the modems to connect.
97: Default 45 seconds.</p>
98:
99: <dt><b><code>$RingTimeout</code></b><dd><p>How long to wait for a RING before giving up and
100: trying again. Default 10 minutes.</p>
101:
102: </dl>
103: </p>
104:
105: <dt><b><code>Ringback</code></b><dd><p>This is also an idle script that waits for an incoming call,
106: but instead of answering the call it ignores it and initiates
107: an outgoing connection. This is useful for remotely bringing
108: up a dialup client machine.</p>
109: <p>
110: <dl>
111:
112: <dt><b><code>$RingbackTimeout</code></b><dd><p>How long before giving up (reset and try again).
113: Default: 60 minutes.</p>
114:
115: <dt><b><code>$RingStoppedTime</code></b><dd><p>For analog modems, we have to wait for the ringing to
116: stop before trying to dial out, otherwise we'll inadvertently
117: answer the incoming call. This value is set to the minimum
118: time to wait before declaring that the ringing has stopped.
119: Default: 8 seconds.</p>
120:
121: </dl>
122: </p>
123:
124: </dl>
125: </p>
126:
127:
128:
129: <HR NOSHADE>
130: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
131: <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
132: <b>:</b> <EM>The included <code>mpd.script</code></EM><BR>
133: <b>Previous:</b> <A HREF="mpd60.html"><EM>Errors</EM></A><BR>
134: <b>Next:</b> <A HREF="mpd62.html"><EM>Troubleshooting</EM></A>
135:
136:
137:
138: </BODY>
139: </HTML>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>