home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
modem
/
fidoterm.arc
/
DIAL.SCR
next >
Wrap
Text File
|
1988-02-05
|
767b
|
57 lines
trap timeout
&t= 4
quiet 1000
output "ATX3V1E1M1\r"
match "OK\r"
quiet 1000
&t= 60
output "ATDT&1\r"
:get-result
sample
if "24" 2400b
if "RI" jmp ring
if "VO" voice
if "96" 9600b
if "CT\r" 300b
if "12" 1200b
if "BU" busy
if "NO" noans
if "FA" fast
jmp get-result
:timeout
message "The modem is dead as a doorknob"
return 1
:ring
message "Ring!"
jmp getbaud
:noans
message "No connection!"
return 1
:voice
message "Voice!"
return 1
:busy
message "Busy, redialing ..."
&t= 60
output "A/\r"
jmp get-result
:300b
&a= 300
jmp connect
:1200b
&a= 1200
jmp connect
:2400b
&a= 2400
jmp connect
:9600b
&a= 9600
:connect
&b= &a
:fast
message "Connected at &a baud"
return 0
:end