These variables are defined in testrunner so we should not redefine them
in code, only in case if they aren't defined for some reason.
Change default to 127.0.0.1 as it's the only value which has some
meaning.
Remove commented lines.
Change-Id: Icca03215ff854bb2dffe3d3e308445ef5debb9e8
so far, a fee with destination "lnp:<lnp_provider_id>" allows to charge
a call of a ported number by its lnp_provider_id. the problem with this
is that the lnp_provider_id changes each time you purge&upload new lnp
numbers.
this change adds supports for fee destinations such as
"lnpnumbertype:<type>" to match the lnp number's 'type' field. it is a
free text field, that can be set individually per lnp number.
Change-Id: Ic791ffc8d2a3ed63d5bf4d4a0812d8ac01529925
File /etc/ngcp-config/templates/etc/mysql/my.cnf.tt2 no longer exists
as such nowadays. Also it's configuration option bind-address and no
longer skip_networking.
FTR, our template file ships with:
| bind-address = [% database.local.dbhost %]
So another option might be to adjust database.local.dbhost
configuration inside /etc/ngcp-config/constants.yml. As
we discourage modifying constants.yml, let's mention the
bind-address workaround only instead.
Change-Id: I7cb71fa39386256e6b488aaa8fe676d48772372f
We are using systemd and the service is executed in foreground mode, we
should set a default running mode that matches our default behavior.
Change-Id: Id3c0bda0afb1b5c9157bc334d91774e8bce45ec6
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