Hello All!
I wrote a quick and dirty little (actually, medium sized, with the
documentation) script used for dialing with a calling card or credit card.
The timing sequence is correct for everyone using TTI National as their
calling card provider. You'll probably have to tinker with it to make it
work with your carrier. NOTE: If you use an AmeriVox calling card, you have
timing easy. Simply substitute "dw" (no "") for the commas in the script and
your timing will work perfectly, as AmeriVox provides dial tones when you
need to dial your card number and then to dial the number to access.
Also, the script sets your modem for commas to have a three second delay. If
you need to, modify the line that has ats8=3 in it, where the three is the
number of seconds the modem should wait on a comma. (It may differ for your
modem).
(NOTICE: This script should work with Telemate 4.12 AND 4.2. However, it
seems to have trouble for no apparent reason on some computers.)
Let me know what you think. I'll be making improvements to it, i.e. adding
color, having configurable menus so you can have different pairs of access
#/card # in a seperate file to pick from instead of them being hard coded
into the script or you having to enter them every time.
Enough gab. On with the script:
; !!!!!
; DIALCC.SCR, Written by Wes Mills (wmills@alt.bighub.org, Wes @
:124/2342.4)
; (C) 1996, CompuShare Systems
; This file is freeware and free distributable. Please do not make any
; modifications without notifying the author. Redistribution requires giving
; credit to the author.
; !!!!!
; ==============================
; Change these to match and comment all statements in the * section to use
; automatic dialing, or comment out the below and uncomment the statements
; in the * section. You can comment out certain variables and leave the
; code in the * section to use selected automatic/manual dialing.
;
; Set to your calling card provider's access #
accessnum="18005551212"
; Set to your calling card #
cardnum="1234567890"
; ==============================
; Change the D to P for pulse dialing.
dialstr="atDt"
; Change these commas to match the timing needed for your calling card
; carrier before you enter the card #.
dial1=",,,,"
; Change these commas to match the timing needed for your calling card
; carrier before you enter the phone number to dial.
dial2=",,"
; ******************************
; WARNING: DO NOT UNCOMMENT THE NEXT LINE (or this line)
; Uncomment the next 05 lines if you want to use manual dialing
; cls
; print "Enter your calling card provider's access #:"
; input accessnum
; print "Enter your calling card #:"
; input cardnum
; ******************************
print "Enter the number to dial:"
input num2dial
clear key
clear text
print "Please wait. Setting S8 register to 3 second value for dialing."
put "ats8=3"
print "Please wait. Initalizing variables."
concat dialstr,accessnum
concat dialstr,dial1
concat dialstr,cardnum
concat dialstr,dial2
concat dialstr,num2dial
put dialstr
print "Dialing completed. Please wait for connection."
Wes
--- LoraBBS-DOS v2.40 (Eval.)
---------------
* Origin: Wes's House of Horrors---Lewisville, TX (1:124/2342.4)
|