home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
timing
/
slipcharge_1
/
!SlipCharg
/
!Help
< prev
next >
Wrap
Text File
|
1996-06-08
|
4KB
|
79 lines
!SlipCharge 1.02 08th June 1996
This routine takes the !SlipDial log file, and uses it to build a file
called 'Costs' (in the !SlipCharg directory). The Costs file uses the online
and offline records in the !SlipDial log file to calculate the cost of the
call, and also maintains a cumulative cost.
New in this version is support for FreeDial, although this has not
been fully tested. I use it with the Acorn stack & PPP, not Freenet.
Any feedback on this with Freenet or other configs welcome. You
have to alter the Dialler parameter in the Params file to use this.
(It identifies where the Log file is)
!SlipDial log records formats supported
# 950525 183331 online to 01813384848
# 950525 192506 offline after 00:51:28
OR the older format pre 0.34d
Thu,18 May 1995.19:13:38: online to 01813434848
Thu,18 May 1995.19:28:39: offline after 00:14:58
!SlipCharg Costs record
25/05/95 18:33 01813384848 00:51:28 @ 1.40p 84.6p Cumulative 99.4p
The cost (84.6p) includes VAT, the rate (1.40p) does not.
To run !SlipCharge just double click on its icon as usual. An icon will
appear on the icon bar for a time and then disappear. Note: this icon
is ONLY to let you know when !SlipCharge has finished (it goes away then!).
I have not bothered to load menu code so clicking menu on it does nothing!!
If things go wrong and you need to quit, then use the Task Manager. The
program is not particularly fast so give it a few minutes if your log file is
large.
There is a file called Params in the !SlipCharge directory which the program
reads to establish parameters such as call rates, phone numbers etc. By
default all calls are national, but you can edit this to tell !SlipCharge
that certain numbers are 'local' or 'regional'.
The costing is at BT rates unless the number begins with 131 or 132 when
it is assumed to be Mercury. It will use the Mercury SmartCall rate, but
by altering the variable 'MCLrate' in the Params file, the Mercury standard
rate can be set.
There is no way that I can think of programming in all the various special
discount schemes that BT and Mercury provide. If you use these you will have
to make your own adjustments.
This program is public domain and all the usual caveats apply. Use it at
your own risk. In particular note that it is only an indication of costs, I
don't think that !SlipDial logs all failed call attempts, and each one costs
you 5p!.
This code was cobbled together very quickly in BASIC to keep track of my own
bills, it was not really meant for release. The code is not elegant or
quick. If you don't like it then don't use it.
History
0.10 June 1995 First attempt, done to keep track of my own bill
0.11 23/07/95 First alpha release to the net.
Removed the Dates and WimpLib LIBRARY calls and
put stripped down code in the main routine.
Added Params file rather than hard code the parameters.
Various other minor improvements.
0.12 28/07/95 Added support for older SlipDial formats.
0.13 30/07/95 Added Mercury call charges for 131 or 132 calls.
0.14 02/08/95 Bug Fix (FNmonth not truncating month to 3)
0.15 05/08/95 Changed reading of Params file to use PROCSetBas
0.16 17/09/95 Allowed 2 offlines to be a failed call
1.00 25/09/95 No changes, just moved to issue 1 with PGP certificate
1.01 08/10/95 Added code to estimate duration if SlipDial leaves it off.
1.02 08/06/96 Code to keep a Backup of the costs file.
Support for SlipDial 0.40 which adds info after the phone number.
Support for FreeDial log format
NOTE. No changes to tariffs done, I don't think they have changed.
Bug reports to John@meers.demon.co.uk