* type=id values are pre-fetched from cdr_tag_data on init
* 3 new data columns are stored in cdr_tag_data
furnished_charing_info,
header=P-Asserted-Identity
header=Diversion
Change-Id: I228743beb05cc09cc28d7df8dedc90dd3cdbcfed
Make sure every function that calls medredis_init() properly returns an
error if the connection fails, as it frees the connection struct and
sets the pointer to NULL when it does.
Also eliminate the `con` global variable being passed to functions. This
eliminates a scope collision (global `con` vs local `con`) and also
makes sure all functions always see an up-to-date pointer and won't use
a possibly stale local copy of the pointer.
Change-Id: I63561c49923cc30d97fce9f69c8135cc023626bd
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 alias one.
The same for redis-server.service.
Also migrate from alias mysql.service to mariadb.service.
Change-Id: I94276a8647053646abd545e4d5b768b284b8a652
Since recently (see below), this service depends on redis-server but it didn't
declare it as dependency in its systemd unit file, so the service will not wait
for Redis, on which it depends on, and will fail to start properly.
commit 2812d161a5
Date: Mon Feb 26 16:09:35 2018 +0100
(Catched by tests of the task in the first line).
Change-Id: I599c8c2fa8ac4e2c7428bb787889f3c9f00185e2
* Fetch acc records both from mysql and redis
* Backup/trash redis acc records into mysql
* Introduce loglevel config option and log macros
Change-Id: I9bc55ed72502feaff03550c99ce481aea33e5e58
Shipping this alias as a symlink under /lib/systemd/system, guarantees
that it will be available even when the service is disabled. And it will
override the init script and avoid systemd autogenerating a compat
service.
Change-Id: Iacc6f952ac0d57bf33bdec3c6e23a59f4f42097e
This is a callback, so we cannot control the interface. Just mark it as
unused with the __attribute__ keyword.
Warned-by: gcc -Wextra
Change-Id: If9ddfe5861b1113670cd4ec52696d869334951eb
The variable is a uint8_t and it can hold up to 255 values, so we need
possibly up to 3 digits plus the ending NUL.
Warned-by: gcc-7
Change-Id: I1b0ae3ad141c048ae924b421d2266a8e37a669c5
This service file assumes that the new mediator configuration is in
place to define all the options to use.
Change-Id: I876a0764f3355dd040baf4824794483ec734e2f3
We need a new configuration file for multiple reasons. For security
purposes, to avoid passing passwords as part of the program arguments,
which are publicly visible. And to be able to use systemd services
files, because there's at least the maintenance configuration that's set
conditionally, and that's not easily supported in systemd service files.
Refactor the code to make it easier to add a simple config file parser,
based on a key or key=value per line, with support for comments starting
with # on the first column.
In addition this also gives us long command-line options for the
existing short options.
Change-Id: I611f262847fa2ec4e3c569ca27e01b691e585fcc
- Bump debhelper compatibility version 10.
- Switch from Priority extra to optional.
- Update debian/.gitignore file.
Change-Id: I5985edfdf3eba07364ca7f9291f1c7f96a753b24
We want to make sure the process has been stopped, or killed after the
timeout has been reached. Not doing so incurs in race conditions and
multiple instances running.
Change-Id: Ied0a32384411cc490b1fc84c2f08ccf69ed8f38a
If we use the option variables, they will be affected by any option
passed on the command-line, producing confusing --help output.
Change-Id: Ieee9cf06e861b09509dc3e91a30143a2687ccd89
* added acc fields: source_lnp_type, destination_lnp_type
* source_lnp_type is stored as NULL if the string is empty
* destination_lnp_type is stored as NULL if the string is empty
Change-Id: Ia81debf9ff56aca87e4f1bcc4a82f8c8b9c1edec