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