1 ; /etc/kermit/ckermit.modem.ini: modem initialization for C-Kermit
3 echo { Initializing modem \m(modem_dev) ...}
5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7 ;; change to reflect your modem.
8 ;; use `set modem type ?' to list available modem types.
10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12 ; set line to value from `modem' macro
13 set line \m(modem_dev)
15 stop 0 { Error: couldn't set line to `\m(modem_dev)'}
18 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
20 ;; change speed and flow-control to suit.
21 set carrier-watch auto
26 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
28 ;; `modem-command' hangup method sends `+++ATH0+++' and works for most modems.
29 ;; `rs232-signal' hangup method only works if your modem respects DTR.
30 set modem hangup-method modem-command
31 ;set modem hangup-method rs232-signal
32 set modem speed-matching off
34 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
36 ;; change to suit if necessary.
37 ;; if your modem has a saved configuration, you can send `ATZ' to recall it.
38 ;set modem command init-string {atz\x0d}
39 set modem dial-command {atd %s\x0d}
41 ;; `loud' and `quiet' commands turn the modem's
42 ;; speaker on or off while dialing.
43 define loud {set modem dial-command {atm1d %s\x0d}}
44 define quiet {set modem dial-command {atm0d %s\x0d}}
46 ;; `callwaiting' command turns anti-callwaiting prefix on or off
52 set dial prefix {*70\x2c}
58 echo {Usage: CALLWAITING { ON | OFF }}
61 echo {Usage: CALLWAITING { ON | OFF }}
66 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67 ;; DIALING PARAMETERS:
70 set dial confirmation off
80 ;; `setredial' command turns dialing retries on or off
102 echo {Usage: SETREDIAL { ON | POLITE | RUDE | OFF }}
105 echo {Usage: SETREDIAL { ON | POLITE | RUDE | OFF }}
110 ;; dialing restrictions
111 set dial restrict international
112 ;set dial restrict long-distance
113 ;set dial restrict none
114 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
116 ; read a locale file, if it exists. the default can be
117 ; overridden by the environment variable KERMIT_LOCALE_INI.
118 xif defined \$(KERMIT_LOCALE_INI) {
119 assign locale_ini {\$(KERMIT_LOCALE_INI)}
121 assign locale_ini {\m(sys_dir)ckermit.locale.ini}
123 xif exist \m(locale_ini) {
127 ; -------- End --------