charge the "extra rate" at "extra second" of call time.
while it is included in the value of
"(source|destination)_(carrier|reselller|customer)_cost", it also
has to be recorded explicitly, using
(source|destination)_(carrier|reseller|customer)_extra_rate
dcr_tag.
Change-Id: I016977a7ed54f45a67513595980a14f9847c3a4b
The rate-o-mat is doing nothing when maintenance mode is enabled,
it has been implemented in TT#16754 but later after migration to
systemd and after migration to unit 'type=notify' we forget to send READY=1.
Fixing it here, as it cause 90 seconds delay on ngcpcfg apply on
active node if maintenance mode is enabled.
Change-Id: Ie0489635b4b9dc29e867517d4ae72417466d2e59
after a cdr got rated and the call costs are calcualted,
rate-o-mat now populates 2 records in the
accounting.cdr_period_costs table for each source customer ID:
- day record: accumulated cdr costs of the day of the
call end time
- month record: accumulated cdr costs of the month
of the call end time
this works efficiently using upsert stmts (INSERT .. ON
DUPLICATE KEY ..) and therefor relies on the table's primary
key.
at the same time it checks if the sums exceeds either of
profile or contract fraud limits (if any). if either the
day or month fraud limit is exceeded and has has a fraud
lock level set, it will instantly apply that lock level to
all the customer ID's subscribers.
proper support for re-rating cdrs will follow in a separate
step.
Change-Id: I5a4f6139893c7ef01f343e75df8848342fab23e1
Install mariadb-client instead of mysql-client, otherwise:
> E: Package 'mysql-client' has no installation candidate
Switch dependency from perl-modules to perl, as perl-modules
is not a public interface and we should not depend on
it directly (c) Guillem Jover.
P.S. also sorted list of modules alphabetically and remove
unnecessary docker layers by calling all apt-get in one "RUN".
Change-Id: Iea6ca4096a455dd91f76d6cc4f0f432334de3d9b
Is service B "Requires" service A to be started before B
and B does NOT require B restart on A restart, B should use "Wants=A".
Also using real service name mariadb.service instead of the alias one.
Change-Id: Icdaa206091cbc275cca2393f7105e9a5721eb2b3
+ option to write real costs for post-paid
+ option to not update balances for prepaid calls,
will be active from now.
Change-Id: Id0d7583ad8a9715bfc70ebad954b4ef933bca907