home *** CD-ROM | disk | FTP | other *** search
- $1 384 8n1
-
- ! ||~You will not be allowed to use this file until you edit it.||
- ! The reason for this is that, if you do not change *all* the passwords,|
- ! you may find your diary serialized in a supermarket tabloid and your|
- ! answering machine messages featured on Geraldo.||
- ! You will also find it helpful to record a greeting, fax and data|
- ! instructions, paging instructions, page confirmation message, and receive|
- ! voice error message, assuming you actually want it to work.||
- q 99
-
- ; This script is disgusting. If you like the programming practice exhibited
- ; here, you should get a job hacking COBOL for ATMs. (Drunk, of course.)
- ; COMSCRPT is not as conducive to healthy scripts as it might be,
- ; particularly if they evolve. The scripts are awfully easy to write,
- ; but can be very hard to understand if you don't remember writing them.
-
- * 255
-
- ; No voice pending
- l 171 170
- ; No fax pending
- l 20 172
- ; Don't page at timeout
- l 20 20
-
- : 0
- = 384
- < athz|
- > 2 OK
- p 8
- q 129
-
- : 2
- ; The next line is a little inelegant but I was low on labels thereabouts.
- 0 169
- = 384
- < at&f&c1&d2l1|
- > 3 OK
- p 5
- g 240
-
-
- : 3
- ; Maybe ! banner regarding pending voice or fax message
- j 170
-
- : 20
- 0 0
- > 23 RING
- p 60
- ; Minute counter for repage.
- r 19 25 20
- g 20
-
- : 19
- ; Repage 25 minutes later, maybe.
- j 20
-
- : 23
- > 24 RING
- p 8
- g 3
-
- : 24
- ; Count subsequent rings.
- r 4 3 0
- g 23
-
- : 4
- < at#bdr=16|
- > 6 OK
- p 5
- g 240
-
- : 6
- < at#cls=8|
- > 8 OK
- p 5
- g 240
-
- : 8
- ; This seems to default, but who knows...
- < at#vbs=4|
- > 9 OK
- p 5
- g 240
-
- : 9
- ; Don't much care for silence deletion.
- < at#vsd=0|
- > 10 OK
- p 5
- g 240
-
- : 10
- < at#vsp=50|
- > 11 OK
- p 5
- g 240
-
- : 11
- < at#vss=3|
- > 12 OK
- p 5
- g 240
-
- : 12
- < at#vls=4|
- > 25 OK|`0a
- p 5
- g 240
-
- : 25
- < ata|
- > 30 VCON
- p 15
- g 240
-
- : 30
- x $@voicetx $1 384 $@pecgreet.vce * # c e 7 8 9 d b t c0
- ; * is skip greeting, leave message
- # 34 0
- ; # is request command mode
- # 40 1
- ; c is fax CNG
- # 60 2
- ; e is Euro data CNG
- ; 7 is force data
- # 80 4
- ; 8 is voice instructions on fax and data
- # 150 5
- ; 9 is force fax
- # 60 9
- ; Dialtone, busy, local instrument pickup & loop break mean we should hang up
- # 240 127
- # 35 128
- g 240
-
- : 34
- < at#vts=[0,600,10]|
- > 35 OK|`0a
- > 35 VCON|`0a
- p 5
- g 240
-
- : 35
- < at#bdr=8|
- > 36 OK
- p 5
- g 240
-
- : 36
- = 192
- < at#vbs=2|
- > 37 OK
- p 5
- g 240
-
- : 37
- l 170 170
- r 37 32766 37
- ; Voice messages go in <PCCPPATH>\vmsg\
- x $@voicerx $1 192 $@vmsg\ 180 # d b t s q c0
- # 155 0
- # 39 128
- # 42 253
- g 240
-
- : 42
- x $@voicetx $1 192 $@error2.vce
- g 240
-
- : 39
- < at#bdr=16|
- > 38 OK
- p 5
- g 240
-
- : 38
- = 384
- < at#vbs=4|
- > 240 OK
- p 5
- g 240
-
- : 40
- < at#vts=[523,698,15]|
- > 45 `103`101`104`101`105`109`10#
- p 15
- g 240
-
- : 45
- l 171 170
- l 20 20
- 0 37
- x $@vbrowse $1 384 3 192 2 $@vmsg /d
- g 240
-
- : 60
- < at#cls=2|
- > 62 OK
- p 5
- g 240
-
- : 62
- ; This is your station ID for fax; change it!
- < at+flid="PCCP Noncustomized"|
- > 64 OK|`0a
- p 5
- g 240
-
- : 64
- < at+fdcc=1,5,0,2,0,0,0,0|
- > 66 OK|`0a
- p 5
- g 240
-
- : 66
- < at+fcr=1|
- > 68 OK|`0a
- p 5
- g 240
-
- : 68
- < ata|
- l 172 172
- x $@rcvfax $1 384 192 $@fax
- c
- p 2
- g 240
-
- : 80
- < at#cls=0|
- > 81 OK
- p 5
- g 240
-
- : 81
- < at&f&c1&d2l1s95=44|
- > 82 OK
- p 5
- g 240
-
-
- : 82
- < ata|
-
- : 83
- > 84 CONNECT 38400|`0a
- > 85 NO CARRIER|`0a
- p 70
- g 85
-
- : 85
- -
- d 85
- +
- c
- p 2
- g 240
-
-
- : 84
- ; You may wish to change this.
- < |`0a`0a`0aWelcome to data mode. Aren't voice modems fun?|`0a`0a
-
- : 87
- < |`0a password: -->
- ; Change this!!!
- > 90 kowabunga|
- > 88 |
- p 10 2
- : 88
- r 89 3 1
- g 87
-
- : 89
- < |`0aPlease wait there; the Janet Reno Volunteer Fire Department has|`0a
- < been notified of your problem.|`0a
-
- ; The following is a security lockout. It makes it take two or three
- ; times as long to crack the password, in this case. You can increase it.
- c
- p 20
- g 85
-
- : 90
- x $@session $1 384
- g 85
-
- : 100
- d 101
- g 85
-
- : 150
- x $@voicetx $1 384 $@faxdata.vce
- g 240
-
- : 155
- < at#bdr=16|
- > 157 OK|`0a
- p 5
- g 240
-
- : 157
- = 384
- < at#vbs=4|
- > 159 OK|`0a
- p 5
- g 240
-
- : 159
- x $@voicetx $1 384 $@pageinst.vce
- < at#vts=[0,600,10]|
- g 161
-
- : 161
- ; Make them dial 123 to page so we know it's not a phantom DTMF.
- > 163 `101`102`103
- p 10
- g 240
-
- : 163
- ; Confirm page request to caller.
- x $@voicetx $1 384 $@pageconf.vce
- g 165
-
- : 165
- ; first page entry
- ; zero the minute counter to get the right phase
- 0 20
- ; minute counter expiration goes to last page entry
- l 166 20
- g 167
-
- : 166
- ; last page entry
- ; minute timer expiration loops back same as if it hadn't
- l 20 20
- g 167
-
- : 167
- ; kill voice mode for paging
- < athz|
- > 168 OK|`0a
- p 8
- g 240
-
- : 168
- ; This dial command is your pager activation. If you use a numeric rather
- ; than a Metrix, maybe a w will help for entering a validity code.
- ; Put goodies after the dt.
- < at&f&c1&d2s7=20dt|
- > 240 BUSY|`0a
- > 240 NO CARRIER|`0a
- > 169 NO DIALTONE|`0a
- p 25
- g 240
-
- : 169
- ; Either there's a new call (tough cookies) or the damn fool hasn't hung up.
- r 240 10 169
- g 168
-
- ; l 171 170 = No voice pending
- ; l 170 170 = Voice pending
- ; l 20 172 = No fax pending
- ; l 171 172 = Fax pending
- : 170
- ! |
- ! *********************************|
- ! *
- " 37
- ! VOICE MESSAGE(S) PENDING *|
- ! *********************************|
- : 171
- j 172
- : 172
- ! |
- ! ***********************|
- ! * FAX(ES) PENDING *|
- ! ***********************|
- g 20
-
- ; Absolutely, positively (we hope) hang up and re-init.
- : 240
- l 2 250
- g 250
-
-
- ; Behold! An actual subroutine!
-
- : 250
- = 384
- < athz|
- > 252 OK
- p 8
- = 192
- < athz|
- > 252 OK
- p 8
- g 250
-
- : 252
- j 250
-
- : 254
- q 0
-
- : 255
- -
- l 254 250
- g 250