* maximal -> maximum
[kdenetwork.git] / kppp / Rules / Ireland / Eircom_Special.rst
blob011c2e28d93ee795c9bf0795b842f15e9312a190
1 ################################################################
3 # This is a kppp ruleset for Eircom (formerly Telecom Eireann)
4 # for a special Esat deal of £17/month flat rate to get you their
5 # ISP calls uncharged and unrated evenings and weekends. Other times
6 # they cost a regular phone call from your Telco (eg Eircom)
8 # Unbelievably, Eircom has now dropped the former (ludicrously
9 # irrelevant) distance-based charge-bands on direct-dialled calls.
10 # They still remain for operator-connected calls but these are
11 # (a) a rarity and (b) unusable for modems anyway. Calls in Ireland
12 # are therefore in one of the following categories:
14 # 1. Local calls
15 # 2. Special-rate Internet calls (ISPs with 1891 numbers)
16 # 3. National calls (ie all other trunk or long-distance calls)
18 # Note that some Telcos offer special deals of a fixed-rate per-month
19 # charge which gives you unlimited, uncharged local calls in off-peak
20 # times. At other times, your standard Telco rates apply. *THIS FILE*
22 # "Local" is as hard to define as in any other Telco administration,
23 # as it can cross area codes, even when they are in different regions,
24 # in order to allow people to call their neighbours 100 yards away
25 # even though they may technically be in an area code which would
26 # normally qualify as "long-distance", because such calls don't go
27 # onto the trunk, just the local exchange.
29 # Note all values here include Value-Added Tax at 21% current
30 # at 31-Dec-1999
32 # Peter Flynn <peter@silmaril.ie>
33 ################################################################
35 name=Ireland_Eircom_Special
37 # Define IEP (Irish Pounds) to be used as currency symbol
38 # ??? There is no way to define the currency code AND the symbol !!!
39 # WARNING this will have to be changed to EUR from 2002-01-01
40 currency_symbol=£
42 # Define the position of the currency symbol.
43 # (not absolutely needed, default is "right")
44 # ??? Curious default, why not left, which is _way_ more common? !!!
45 currency_position=left 
47 # Define the number of significant digits.
48 # (not absolutely needed, default is "2"
49 currency_digits=2
51 # NOTE: rules are applied from top to bottom - the
52 #       LAST matching rule is the one used for the
53 #       cost computations.
55 # It costs 11.5p the moment a call connects. This covers the first
56 # 3 mins (peak hours, 8am-6pm M-F) or first 15 mins (off-peak)
57 # For this special deal, this should be covered by the rules below
58 per_connection=0.0
60 # Therefore the minimum cost is the same as the per-connection cost
61 minimum_costs=0.0
63 # Therefore the first 180 secs costs this much no matter what.
64 flat_init_costs=(0,0)
65 # A pity there's no peak/offpeak differential for this one.
67 # All subsequent charging is done per-second, based on the unit
68 # charge of 11.5p for 3mins (peak hours) or 11.5p for 15mins
69 # (off-peak), which works out at £0.000638889/sec and £0.000127778p/sec
70 # respectively...that's what they claim, anyway.
72 # Rather than expect kppp to check the rate every second and add
73 # tiny fractions, I've expressed these rates in terms of the amount
74 # needed to clock up half a penny (or the closest amount exceeding
75 # that value obtainable by multiplying the per-second rate by an
76 # integer). Not a whole penny, because you may be damn certain the
77 # bean-counters will round up half-penny amounts to the nearest
78 # whole penny anyway (anal-retentive, are we? :-)
80 # Thus the base rate for peak-time calls is £0.005111 for 8 secs
81 # (0.115 / 180 = 0.000638889 / 0.005 = 0.127778 inv = 7.8261)
82 # and off-peak is £0.005111  for 40 secs 
83 # (0.115 / 900 = 0.000127778 / 0.005 = 0.25556 inv = 39.1304)
84 # so accounting should happen in approx 1/2p increments...
86 # OK, here we go...
88 # Because of the need to detect time-of-day as well as initial-period, 
89 # this default should never actually get applied, but we assume that
90 # connections are made in the peak rate period...
91 default=(0.005111,8)
93 # PEAK-TIME CALLS are 8am to 6pm Mon-Fri, so after flat_init_costs
94 # this rule should apply:
95 on (monday..friday) between (08:00..18:00) use (0.115,180)
96 on (monday..friday) between (08:00..18:00) use (0.005111,8,180)
98 # OFF-PEAK CALLS are 6pm to 8am Mon-Fri plus all day weekends and holidays
99 # This needs to supersede the flat_init_costs on time, because that
100 # only applies to the first 180 secs of PEAK-TIME calls
101 on (monday..friday) between (00:00..08:00) use (0.115,900)
102 on (monday..friday) between (18:00..23:59) use (0.115,900)
103 on (saturday..sunday) between (00:00..23:59) use (0.115,900)
104 # Thereafter the default applies after the first 15mins
105 on (monday..friday) between (00:00..08:00) use (0.005111,40,900)
106 on (monday..friday) between (18:00..23:59) use (0.005111,40,900)
107 on (saturday..sunday) between (00:00..23:59) use (0.005111,40,900)
109 # KNOWN HOLIDAYS
111 # New Year's Day
112 on (01/01) between (00:00..23:59) use (0.115,900)
113 on (01/01) between (00:00..23:59) use (0.005111,40,900)
115 # St Patrick's Day
116 on (03/17) between (00:00..23:59) use (0.115,900)
117 on (03/17) between (00:00..23:59) use (0.005111,40,900)
119 # Easter Monday
120 on (easter+1) between (00:00..23:59) use (0.115,900)
121 on (easter+1) between (00:00..23:59) use (0.005111,40,900)
123 # May Day (Bealtaine)
124 on (05/01) between (00:00..23:59) use (0.115,900)
125 on (05/01) between (00:00..23:59) use (0.005111,40,900)
127 # Christmas Day and St Stephen's Day
128 on (12/25) between (00:00..23:59) use (0.115,900)
129 on (12/25) between (00:00..23:59) use (0.005111,40,900)
130 on (12/26) between (00:00..23:59) use (0.115,900)
131 on (12/26) between (00:00..23:59) use (0.005111,40,900)
133 # This file should be refreshed every year to take account of the
134 # moveable public holidays we inherited from the British practice,
135 # known as "Bank Holidays" (originally the quarter-days when banks
136 # had to close for accounting purposes, but now almost unpredictable).
137 # These happen several times a year, always on a Monday. Dates 
138 # for 2000 are June 5th, August 7th, and October 30th.
139 # The exact dates are known several years in advance and are fixed
140 # by the Taoiseach's Office and the Dept of Local Government.
141 # They are NOT the same days as British Bank Holidays, which are
142 # fixed on a different basis.
144 # June Bank Holiday 2000 (in lieu of Oimelc/Imbolc, which was in Feb)
145 on (06/05) between (00:00..23:59) use (0.115,900)
146 on (06/05) between (00:00..23:59) use (0.005111,40,900)
148 # August Bank Holiday 2000 (Lughnasa)
149 on (08/07) between (00:00..23:59) use (0.115,900)
150 on (08/07) between (00:00..23:59) use (0.005111,40,900)
152 # October Bank Holiday 2000 (Samhain)
153 on (10/30) between (00:00..23:59) use (0.115,900)
154 on (10/30) between (00:00..23:59) use (0.005111,40,900)
156 # No automatic account is taken of Transference, when a fixed public 
157 # holiday occurs on a weekend, which means the following Monday becomes
158 # a holiday in compensation. (1/1/2000 is a good example!!)
160 # Transfer New Year's Day holiday 2000 to first working day afterwards
161 on (01/03) between (00:00..23:59) use (0.115,900)
162 on (01/03) between (00:00..23:59) use (0.005111,40,900)
164 # None of the other fixed holidays in 2000 needs this doing. 
166 # When Christmas occurs on a Saturday (and St Stephen's Day therefore
167 # on a Sunday), ONLY the following Monday is a holiday, not the Tuesday
168 # as well (sorry, guys :-)
170 # This is where the Esat deal bites:
171 on (monday..friday) between (18:00..23:59) use (0,0)
172 on (monday..friday) between (00:00..08:00) use (0,0)
173 on (saturday..sunday) between (00:00..23:59) use (0,0)