DialCost v1.00 (c) 1994 by Erik Groten Steenwelle (2:283/412.1)

1) What you should do before running DialCost;

   Read and configure the following files;  

      First read this file.

      License.Doc    <PLEASE READ>

      DialCost.cfg   <General settings>
      Zwolle.cfg     <Settings for local and national costs>
      NL.cfg         <Configure only If you aint Dutch, International costs>
      Special.cfg    <Special phonenumbers>

      Register.how   <Read please, if deleted program will be sloooow>

2) How does DialCost know if a number is Special, International, Local or 
   National?

   Remember that the DialPrefix (if any) will be added to any phone number 
   found in your costs configs.

        If you dial number 98749874
        And in a config file you have declared NationalNumber 9, then there is
        a match.

3) Search protocol;

 1 - The file with special phone numbers will be searched for a match.
 
     If a match is found the costs are calculated. 
     If no match go to 2.

 2 - If the first digits from the phone number from your logfile match with 
     IntPrefix. Then the file with the international cost declarations is 
     searched for a match.

     If a match is found the costs are calculated.
     If no match go to 3.
   
 3 - The file with the Local and National numbers/costs will be searched in the
     following order;

        4 Compare with NationalNumbers, if match, costs are calculated 
          according to the National settings.

        If no match found.
   
           5 Compare with LocalNumbers, if match, costs are calculated 
             according to the Local settings.

           If still no match call will be treated as National.


4) What if a call does overlap some cost time settings?

    Suppose you made a call from 17:50:34 to 18:07:45

     And you configured the costs as follows
           costs are 15 cents per 60 seconds from 08:00 to 18:00
       AND costs are 10 cents per 90 seconds from 18:00 to 24:00

   Calculation:

   Total seconds online : 1031

   Seconds for tariff 1 :  566/60 = 9.43 
                           9.43 will be rounded to 10
                         So seconds for tariff 1 will be 10 * 60 =  600 seconds

   Costs tariff 1       : Connect fee + (600/60 * 15 cents) = 150 cents.

   Seconds for tariff 2 : 1031 - 600 = 431 seconds.

   Costs tariff 2       : 431/90 = 4.78
                          4.78 will be rounded to 5 (even if it was 4.04)

                          Costs = 5 * 10 = 50 cents.


  Total costs           : 150 + 50 = 200 cents.

5) DialCost is reporting "No new call during last run of DialCost". But I want
   to process the complete logfile again.

   Every time you run DialCost the time and date of the last call is written 
   to the file LastRead.ptr. Every time you run DialCost it will search for a
   date and time which is newer than that from the file LastRead.ptr. So all 
   the costs are only announced and calculated once.

   Delete the file LastRead.ptr if you want to process the whole logfile again.


Thanx for RingTFM.   

Erik.





