diff options
author | Max <msuraev@sysmocom.de> | 2017-01-02 20:16:22 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-01-08 11:03:39 +0000 |
commit | c038cb790309c4970980d6811456c3ed6bc4d896 (patch) | |
tree | c681e18a06ce4894a2eea05e2a0bb6e48447fce6 /src/common/main.c | |
parent | 94dd5060c82c174b0b0af25284593272252d5787 (diff) |
Add Abis OML failure event reporting
Send 3GPP TS 12.21 ยง 8.8.2 Abis/OML failure event report.
Change-Id: Ib1170edca2207752984a554d7a6a57c224f6d5f5
Related: OS#1615
Diffstat (limited to 'src/common/main.c')
-rw-r--r-- | src/common/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/common/main.c b/src/common/main.c index 1b2549e0..f99f196a 100644 --- a/src/common/main.c +++ b/src/common/main.c @@ -50,6 +50,7 @@ #include <osmo-bts/bts_model.h> #include <osmo-bts/pcu_if.h> #include <osmo-bts/control_if.h> +#include <osmo-bts/oml.h> int quit = 0; static const char *config_file = "osmo-bts.cfg"; @@ -181,13 +182,21 @@ static void signal_handler(int signal) switch (signal) { case SIGINT: //osmo_signal_dispatch(SS_GLOBAL, S_GLOBAL_SHUTDOWN, NULL); - if (!quit) + if (!quit) { + oml_tx_failure_event_rep(&bts->mo, + OSMO_EVT_CRIT_PROC_STOP, + "BTS: SIGINT received -> " + "shutdown\n"); bts_shutdown(bts, "SIGINT"); + } quit++; break; case SIGABRT: case SIGUSR1: case SIGUSR2: + oml_tx_failure_event_rep(&bts->mo, OSMO_EVT_CRIT_PROC_STOP, + "BTS: signal %s received\n", + strsignal(signal)); talloc_report_full(tall_bts_ctx, stderr); break; default: |