9
0
Fork 0
Commit Graph

6286 Commits

Author SHA1 Message Date
Stefan Sperling 4be40b4f1d bts chan_load: ignore unusable BTS
For unconnected BTS, the channel load would report a "bogus channel load
sample" every second (on RLL debug). Instead, skip unusable BTS.

This follows up on commit 6cee893a0f2c4e53155a2631aff12a5f615b973d /
I57e38f6d6ba3b23cc6e1f9520b90261dbb1f1cec
'Make "waiting indicator" of IMMEDIATE ASSIGN REJECT dynamic.'

Port of omo-bsc commit f802f7fd7aec1d91084231a80bbce6f2ed7bd299

Change-Id: Icd50d101244641a6ffdde17e60d7a89719225c65
2018-03-14 21:00:08 +01:00
Stefan Sperling 99805db3c3 Make "waiting indicator" of IMMEDIATE ASSIGN REJECT dynamic.
The IMMEDIATE ASSIGN REJECT message contains a wait indicator which
tells an MS requesting a channel to wait for a specified amount of
time before trying to request a channel again, i.e. the wait indicator
controls the T3122 timeout value in the MS.

Previously, the wait indicator was fixed to 10 seconds.
This is not sufficient if there are a lot of MS requesting channels
because the MS will retry too soon. Instead of using a fixed value,
maintain a dynamic wait indicator value based on average channel load.

The load (used vs. available channels on a BTS) is sampled once per
second, and once 8 samples have been collected we update a BTS-specific
T3122 wait indicator based on the measured load.

While the wait indicator could go up to 255 seconds, this initial
implementation keeps it in the range from 10 to 128 seconds.

Further experimentation and testing will show whether higher wait
indicator values are desirable, if the sampling rate needs to change,
or if the function mapping the load measurement to a wait indicator
value should change (currently we map the load average linearly into
the range [10, 128] inclusive).

Port of osmo-bsc commit 6cee893a0f2c4e53155a2631aff12a5f615b973d

Change-Id: Id9df0e790ece8108212b2ddf718cf2953f5b9bd4
Related: OS#2592
2018-03-14 20:59:37 +01:00
Harald Welte 55d172617c sysinfo: Fix regression causing missing L2 Pseudo-Length in SI5/SI6
Fixes a regression in the code generating SI5* and SI6 on SACCH,
where the L2 pseudo-length is not part of the 'struct' definition
we have in gsm_04_08.h and hence has to be encoded manually into
the first byte of the SI buffer.

We were doing this correctly until April 2017, when the following
patch was merged:

> commit 6f0e50c833
> Author: Max <msuraev@sysmocom.de>
> Date:   Wed Apr 12 15:30:54 2017 +0200
>
>     Prepare for extended SI2quater support

This patch cacidentially overwrote the l2_plen that was just enoded,
as the 'struct' was no longer pointing to 'output' (si_buf+1), but
now directly to the start of the si_buf.

NOTE: The Wireshark RSL dissector (and more recently also LAPDm)
contain a similar bug, so the SACCH will not be decoded correctly
after applying this patch. Nevertheless, it's correct.

back-port of OsmoBSC Change-Id: Ie8c907b1317566670aeb68f933ceefd552c17565
Closes: #3059
Related: #2963
Change-Id: Iaf5feefc1bb3194dd491955fee418795c61787f7
2018-03-12 10:52:35 +00:00
Neels Hofmeyr 14cd21417f fix build: gprs_ra_id_by_bts(): ensure to init all values
After recent libosmocore commit "implement support for 3-digit MNC with leading
zeros" c4fce1425e19d604c199c895e227dc2519110456
Id2240f7f518494c9df6c8bda52c0d5092f90f221, struct gprs_ra_id has a new member,
namely mnc_3_digits. In gprs_ra_id_by_bts(), this new member is now not
initialized and may end up having an arbitrary value, which then may amount to
mnc_3_digits == true. Hence the resulting BCD representation of the MCC-MNC may
inadvertently and randomly indicate a leading zero on the MNC.

Use a struct assignment so that all members are guaranteed to be set, and so
that mnc_3_digits will be zero in all cases.

Since above libosmocore commit, nanobts_omlattr_test fails "randomly", fixed by
this patch.

Change-Id: I5ae899f3c236b3b4feb5c8cf762e2f2d964dbc65
2018-03-05 21:16:23 +01:00
Pau Espin e39e18992a mgcp_protocol: Don't print osmux stats if it is off
Otherwise we get Osmux stats during a session using RTP, which is
confusing.

Change-Id: I814b2051edc85ad5cbd04c96b785c208f6606683
2018-02-19 17:29:28 +01:00
Vadim Yanitskiy 98a2ba4c57 src/libmsc/ussd.c: drop useless forward declaration
There is no any significant reason to define static function
'send_own_number' after the code that calls it.

Change-Id: I8d804398cfa460eaa5a5f84f0ed90909488d0bdd
2018-01-21 11:09:08 +00:00
Vadim Yanitskiy abc075031b gsm_04_80.h: cosmetic: whitespace fix
Change-Id: Ife129bc8b01122444511f6ee52e30cd6367f8593
2018-01-21 11:08:26 +00:00
Vadim Yanitskiy fc714cad6e gsm_04_80.h: use '#pragma once' instead of includes
This is a common include guard way for Osmocom projects.

Change-Id: I9b84e5d87068aba4926d6950b4c419be837bbcc3
2018-01-21 11:08:25 +00:00
Harald Welte cc87156a30 mgcp_transcoding_test: Add LIBOSMOABIS_CFLAGS
Currently, we see the following failure:

make[3]: Entering directory '/build/openbsc/tests/mgcp'
  CC       mgcp_transcoding_test.o
  CC       mgcp_test.o
In file included from ../../include/openbsc/gsm_data.h:176:0,
                 from mgcp_transcoding_test.c:14:
../../include/openbsc/gsm_data_shared.h:21:35: fatal error: osmocom/abis/e1_input.h: No such file or directory
 #include <osmocom/abis/e1_input.h>
                                   ^
compilation terminated.

as gsm_data.h includes gsm_data_shared.h, which includes the e1_input.h
from libosmo-abis, we need to list libosmo-abis in the CFLAGS.

Change-Id: I27c25adfc6ee2c6f07315f3bc76fa7a70202ac4d
2018-01-15 18:32:04 +01:00
Vadim Yanitskiy 82cfa3945c libmsc: add support for both comp128v2 and comp128v3
This change adds support for both comp128v2 and comp128v3 GSM
A3/A8 algorithms. Since they already implemented in libosmocore,
the corresponding it's API is used.

Change-Id: Ic761be0220397d100c9e6345d4d01af4889dc7c1
2018-01-12 03:13:33 +06:00
Max e44a5687c4 Fix tests after rate_ctr change
Recent change lin libosmocore disallow registering rate_ctr with the
same name and indexing multiple times. To accommodate to this:

* allocate network struct once and use it for all tests
* free bts struct after each test

This is a backport of 4ab7268a902af24fcd4870148b709fed4fbf900c from
OsmoBSC.

Change-Id: Ic5fab86bca617cabcd59484066975e17ab2320b6
Related: OS#2757
2017-12-19 13:11:46 +01:00
Neels Hofmeyr 5825e5cfb2 sms.db: silence libdbi warnings on out-of-range index
Apparently, since libdbi 0.9.0 aka 0.9.0-5 on debian-testing, osmo-msc barfs
numerous libdbi warnings whenever a query rightfully returns no rows.

Trivially query whether there are any rows first by adding an inline wrap
function next_row().

Silenced:

  DDB <000d> ../../../../src/osmo-msc/src/libmsc/db.c:188 DBI: -6: An invalid or out-of-range index was passed to l
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:47 backtrace() returned 11 addresses
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0xfb81) [0x555555563b81]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/lib/x86_64-linux-gnu/libdbi.so.1(_error_handle
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/lib/x86_64-linux-gnu/libdbi.so.1(dbi_result_ne
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x11172) [0x555555565172]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x1e6bc) [0x5555555726bc]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x1e7f6) [0x5555555727f6]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0x1f1d2) [0x5555555731d2]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0xbb86) [0x55555555fb86]
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0
  DDB <000d> ../../../src/libosmocore/src/backtrace.c:57        /usr/local/bin/osmo-msc(+0xbfba) [0x55555555ffba]

Related: OS#2737 OS#2667
Change-Id: I43cf4eed22425554826d59857eded5b4cc0d2c52
2017-12-12 13:22:51 +01:00
Pau Espin 5d69fa52cf vty: Add cmd to configure 3g Early Classmark Sending
In state prior to this patch, "3G Early Classmark Sending Restriction"
bit in SI3 rest octets was always set to H, which is a sane default as
the policy to send the information is then controlled by "Early
Classmark Sending Control" bit in the same octet.

However, it seems Quortus SoftCore can have some issues decoding the
option, so let's add a vty cmd to be able to disable it for those
having any issues.

Related: SYS#4021

Change-Id: Ic1afe071038a3bb5871d7ff40f665c8644f801ec
2017-11-27 12:33:19 +01:00
Pau Espin 75042ff46a Use type bool for boolean fields in gsm48_si_ro_info
Change-Id: Ic0981fca96f4927717ca335be1dab00a5d17fd6c
2017-11-27 12:33:13 +01:00
Harald Welte 0195c30df5 osmo-bsc-sccplite: Implement incoming RESET procedure
In osmo-bsc-sccplite we so far didn't implement the inbound RESET
procedure.  We instead ignored any RESET message from the MSC. This
commit adds support for RESET: We will destrpy any SCCP connections
and acknowledge the RESET to the MSC.

As osmo-msc is requiring the BSC to handle an inbound RESET procedure,
this commit allows osmo-msc to properly initialize the A interface
towards osmo-bsc-sccplite via a translating/routing osmo-stp.  While
we don't anticipate any new deployments of osmo-bsc-sccplite, making
it interoperate with osmo-msc enables us to do more testing of
osmo-bsc-sccplite.

Change-Id: Iceb8278deb36d6103662a704f489ba0d685e04d3
2017-11-11 23:25:40 +00:00
Harald Welte 71b68bed2a osmo-bsc: Print NOTICE message on unimplemented BSSMAP UDT
When we receive unimplemented/unhandled message types, we shouldn't
simply silently discard them, but print a log message for the
benefit of the user.

Change-Id: I8ecb1d2134f9c6a96f29e145fa0430880e971168
2017-11-11 23:23:38 +00:00
Neels Hofmeyr 3b0b064196 vty: skip installing cmds now always installed by default
vty_install_default() and install_default() will soon be deprecated.

Depends: I5021c64a787b63314e0f2f1cba0b8fc7bff4f09b
Change-Id: I4951982fc78ae167d8e16a672d7af44d703721a9
2017-11-08 02:28:00 +00:00
Neels Hofmeyr 2e6e39c4b2 vty: skip installing cmds now always installed by default
vty_install_default() and install_default() will soon be deprecated.

Depends: I5021c64a787b63314e0f2f1cba0b8fc7bff4f09b
Change-Id: I4951982fc78ae167d8e16a672d7af44d703721a9
2017-11-01 00:48:26 +01:00
Neels Hofmeyr e18b34143c debian/rules: show testsuite.log when tests are failing
Change-Id: I30151897d621a1428095006e1f0e8a47059de4cd
2017-10-31 01:05:42 +00:00
Harald Welte 577c268b96 Tag/Release Version 1.0.0
This marks the first tagged source code revision after the repository
split and subsequent removal of GPRS related code.

Change-Id: I5d19269983c9281bf36a7279151891902eff0013
2017-10-28 21:21:18 +02:00
Neels Hofmeyr 754a831ddc jenkins: use osmo-clean-workspace.sh before and after build
See osmo-ci change I2409b2928b4d7ebbd6c005097d4ad7337307dd93 for rationale.

Depends: I2409b2928b4d7ebbd6c005097d4ad7337307dd93
Change-Id: Ibafac7c8a48f46237835e91c80e72543c6841d08
2017-10-27 22:54:18 +02:00
Harald Welte cb1838d807 rename osmo-bsc to osmo-bsc-sccplite
This is to avoid naming conflicts with the new osmo-bsc, which resides
in its own git repository (osmo-bsc.git) and which uses libosmo-sigtran
and implements (primarily) 3GPP AoIP.

Change-Id: If10d1599b62d010726336134091a4e855c380d93
2017-10-26 00:50:00 +02:00
Harald Welte ed03661871 remove sgsn, gbproxy and gtphub from openbsc.git
The GPRS related programs osmo-sgsn, osmo-gtphub and osmo-gbproxy
have been split off into the separate osmo-sgsn repository, which
can be found at
	git://git.osmocom.org/osmo-sgsn.git
	http://git.osmocom.org/osmo-sgsn/

This is technically unrelated but conceptually part of the larger
NITB-split activities.

I did a brief log of all changes in src/gprs and couldn't find any
commits that we might have applied here but which are missing from
osmo-sgsn.git.

Change-Id: If60e28b23f5cfb2c4eb354951363a2bb63f3e0de
2017-10-26 00:06:40 +02:00
Harald Welte 888e35aa7f osmo-bsc: Initialize logging before initializing rate_ctr
The library code for rate counter initialization, which is called
from the descendants of bsc_network_alloc() might already want to
log something (particularly after Change-Id
Ifc6ac824f5dae9a848bb4a5d067c64a69eb40b56 in libosmocore), so the
logging framework must be initialized before.

Change-Id: I1e893c97e023e63489fe8c46539b5e507d3cec8f
2017-10-26 00:06:40 +02:00
Harald Welte 6111ab5bac nanobts_omlattra_test: Initialize logging before executing tests
... the library code we call could want to log something, after all.

Port of osmo-bsc Change-Id Ic01e9bfb63d7b6def9432103e744c23c90f0f6b9

Change-Id: Ib4be9541771e95ca4e051b778fc3958202aab9ab
2017-10-26 00:06:40 +02:00
Harald Welte f8ac21bf71 Fix nanobts_omlattr unit test
The test clearly fails unless bts->network is set correctly.  Not sure
why this hasn't shown up before?

Port of osmo-bsc Change-Id I47786ed06ff610213d7a0b56d0ebf1c537cd7568

Change-Id: Id1cd4ce8f1e03b9715e1223414918bc69499e13d
2017-10-26 00:06:39 +02:00
Max 5a45946143 Make TRX rf locking more visible
* log administrative state transitions
* log what's caused it
* while at it, mark boolean variable as such

Cherry-picked from osmo-bsc be356ed32fbd28dc8d1460371d9e47511b20ac63

Change-Id: I3e25a19fac4d0b4886d825c9876771b1f66efe58
Related: SYS#3864
2017-10-23 17:53:48 +00:00
Pau Espin 65021ac507 libbsc: Use correct printf formatting for uint64_t
unsigned long can be 32 bits on some arch/OS, while "current" field is
always 64 bit because it's a uint64_t.

Change-Id: I9719c69ef661bb46d8bb43cf8d6537c3e8d47826
2017-10-23 13:52:37 +00:00
Pau Espin 957ceb1b79 bsc_api: Fix NULL secondary_lchan access in handle_ass_fail
Related: OW#3893

Program terminated with signal SIGSEGV, Segmentation fault.
0  gsm_lchan_name (lchan=lchan@entry=0x0) at gsm_data_shared.c:342
(gdb) bt
0  gsm_lchan_name (lchan=lchan@entry=0x0) at gsm_data_shared.c:342
1  0x0805ab80 in lchan_release (lchan=0x0, sacch_deact=sacch_deact@entry=0, mode=mode@entry=RSL_REL_LOCAL_END)
    at chan_alloc.c:410
2  0x0805c1dd in handle_ass_fail (msg=0x94142b8, conn=0x9251048) at bsc_api.c:459
3  dispatch_dtap (msg=0x94142b8, link_id=0 '\000', conn=0x9251048) at bsc_api.c:598
4  gsm0408_rcvmsg (msg=msg@entry=0x94142b8, link_id=0 '\000') at bsc_api.c:658
5  0x08058ca2 in abis_rsl_rx_rll (msg=0x94142b8) at abis_rsl.c:1686
6  abis_rsl_rcvmsg (msg=0x94142b8) at abis_rsl.c:2097
7  0xb7e8cf9a in handle_ts1_read (bfd=0x94e8e08) at input/ipaccess.c:271
8  ipaccess_fd_cb (bfd=0x94e8e08, what=1) at input/ipaccess.c:386
9  0xb7ee8434 in osmo_select_main (polling=polling@entry=0) at select.c:158
10 0x0804bd7c in main (argc=6, argv=0xbfc27144) at osmo_bsc_main.c:272
(gdb) print lchan
$2 = (const struct gsm_lchan *) 0x0

Possible scenario in which this crash can appear:
1- gsm0808_assign_req() calls handle_new_assignment() which sends an CHAN
ACTIVATE msg and arms T10 timer.
2- ACTIVATE ACK is received (handle_chan_ack), which calls
gsm48_send_rr_ass_cmd() which sends an ASSIGNMENT CMD, and doesn't
disable/modify T10 timer.
3- T10 timeout is triggered (assignment_t10_timeout()), which sets
conn->secondary_lchan = NULL
4- Immediately after, the ASSIGNMENT FAILURE message (which might have been
already queued) is processed in handle_ass_fail, and then the crash occurs.

This race condition is not an issue for handle_ass_compl() path because there's
this check there which would trigger most probably if secondary_lchan is NULL:
"if (conn->secondary_lchan != msg->lchan)"

Change-Id: Ied5bd90b9c06f27135a2e3c46e40d49d27d9a387
2017-10-17 10:07:00 +02:00
Harald Welte 65c6ddebff gsm0408_test: Verify that BA-IND is 0 in SI2xxx and 1 in SI5xxx
This adds a test case to explicitly verify the BA-IND is as expected
by the behaviour introduced in Change-Id I1cd0dc51026dcd0e508e63eea4e333e6b184787a

Related: OS#2525
Change-Id: I3e5b260af97ce96a221e4d51f6c1b41d58817a59
2017-10-01 11:11:45 +08:00
Harald Welte db1f75c3e3 Make sure BA-IND in all SI2xxx is '0' and in all SI5xxx is '1'
In masurement reports sent by the MS, this can then be used to correlate
if a given measurement report was in response to a BCCH/neighbor list
received on BCCH (SI2xxx) or on dowlink SACCH (SI5xxx).

Closes: OS#2525
Change-Id: I1cd0dc51026dcd0e508e63eea4e333e6b184787a
2017-10-01 11:11:30 +08:00
Harald Welte 725bcb71f0 libbsc: document arguments of generate_bcch_chan_list()
Change-Id: I5afc6e6a5a1d6b6a8ee73fdb60cc28074cf8585b
2017-10-01 11:11:12 +08:00
Max f79eeca109 Show OML link uptime in vty
Save the time when OML link to BTS was established and show it in
vty. That's useful when troubleshooting issues like periodic/sporadic
BTS restart.

Related: SYS#3889
Change-Id: I9e4e8504afe8ca467b68d41826f61654e24d9600
2017-09-27 10:54:11 +00:00
Max 3ae8682f97 CTRL: cleanup write-only command functions
Remove trivial functions by using more specific defines for CTRL
commands.

Change-Id: I719b75b6ca1e9372ea11e7e9ff7896021f357035
2017-09-23 14:53:26 +02:00
Keith Whyte 1cbc7e1adf libmsc: Log Rx DELIVER-SM RESP before calling gsm411_send_rp_ack
This patch just makes the log match chronologically what
is happening. We receive the deliver_sm_resp before we send
the RP ACK to the MS.

Change-Id: I29270652957f58093be8bf7f2e898b0b4933bd93
2017-09-14 14:33:56 +02:00
Pablo Neira Ayuso 968a6c2365 libmsc: sms_route_mt_sms() may return uninitialized return value
If smpp_first is set off and there is a local receiver for this sms,
then return 0. Without this patch, we return 'rc' which is uninitialized
in the scenario that I'm describing above.

Change-Id: I0c0bcd919cc3275d491995d17c6a32bb61c6afe1
2017-09-13 11:04:23 +00:00
Neels Hofmeyr e229071479 fix vty tests: vty no longer goes to parent node implicitly
Fix four instances of VTY tests working because it used to include implicit
'exit' commands to the parent node.

Since libosmocore change-id Id73cba2dd34676bad8a130e9c45e67a272f19588 = commit
d64b6aed235f6e4d84a2cb8e84b32c3179260254, we no longer do this implicit-exit in
interactive VTY shells.

*) the nitb node lacked the default command set (including 'end' and 'exit'),
so it was impossible to leave the nitb node. This hit in
testSubscriberCreateDelete. Add vty_install_default(NITB_NODE).

*) in testPingPongConfiguration, the intention is to enter the /msc 0 node.
Drop prior entry of the 'network' node, which looks like an oversight. So
far the 'msc 0' caused an implicit 'exit' and thus worked, now fails.

*) Two instances following comments "# Check searching for outer node's
commands", which look like they are intended to check for this implicit-exit
behavior. This is obsolete, drop those parts of the tests.

Change-Id: I77931d6a09c42c443c6936000592f22a7fd06cab
2017-09-13 12:52:14 +02:00
Pablo Neira Ayuso 9051421d75 libmsc: annotate esme route in the sms object from deliver_to_esme()
Annotate this esme route, so we can use it to return -EINPROGRESS to
skip sending premature RP-ACK to the mobile station, in case we're
handling sms routes through SMPP.

Now that we have this information in place, we use it wherever possible
to avoid kludgy checks on sms->receiver.

sms_free() already releases references to this object, so we should be
fine with this.

Fixes: 4e5b90a594 ("libmsc: remove 'deferred' parameter in sms_route_mt_sms()")
Change-Id: Ib8a8fd9bbb0d3b6aff7931e4bacbea99d000e484
2017-09-11 18:39:07 +00:00
André Boddenberg f52cf145ac Make use of osmo-build.sh to use dependency artifacts for builds.
Change-Id: I8a2ff700bbe3806bb2c1d561c6f2249fae3d8dd8
Note: this patchset depends on https://gerrit.osmocom.org/#/c/3822/1
2017-09-05 15:45:03 +00:00
Ivan Kluchnikov b0a6d1b92d handover_decision: Fix condition for power budget handover attempt
Handover attempt for power budget case should be performed every N SACCH frames,
where N = Power Budget Interval.
First measurement report with mr->nr = 0 was used for the first handover attempt
in this case, which is not correct, because first usable report should have
mr->nr = net->handover.pwr_interval-1.
Moreover using the first measurement report with mr->nr = 0 for handover attempt
could lead to unnecessary handover, because usually av_rxlev for first measurement report
from MS is worse than for following reports.

Change-Id: If7f54a4cb179eaa9e5eb147b9477633ac618e69e
2017-09-04 17:20:02 +03:00
Max 5932ff04a1 SI13: drop PBCCH-related bits
According to 3GPP TS 44.018 §1.8 the "network shall never enable PBCCH
and PCCCH".

Change-Id: I319e71a4b0c682361529e9c21377398a826b934b
Related: OS#2400
2017-08-30 08:26:12 +00:00
Max e747a9b923 Use release helper from libosmocore
See
https://osmocom.org/projects/cellular-infrastructure/wiki/Make_a_new_release
for details.

Change-Id: I460fd73230facbba3e326214e46c0b98b7491628
Related: OS#1861
2017-08-29 12:48:25 +00:00
Max c9fec2af85 Remove common_cs.h from .deb
It's not required by gsm_data_shared.h anymore.

Change-Id: I22004af84244936ca431f3bf901059f366be8bca
Related: OS#2272
2017-08-28 10:32:31 +02:00
Harald Welte 8560d5d616 Use verify_value_string_arrays_are_terminated from osmo-ci
verify_value_string_arrays_are_terminated has recently been moved
from libosmocore.git to osmo-ci.git and the person doing this seems
to have forgotten to update openbsc.git

Change-Id: Ibe4a7f71d2557dfee94803e909dabb00d2ce10af
2017-08-27 05:53:02 +00:00
Neels Hofmeyr 6270059e14 Revert "factor out & introduce struct gsm_encr, in common_cs.h"
This reverts commit ac1f1436e9.

common_cs.h added to gsm_data_shared.h was a mistake, i.e. I added the
dependency by accident.  Including common_cs.h in the debian installation may
have seemed like the logical consequence but was not intended. AFAICT for
osmo-msc, the need for struct gsm_encr is obsoleted by libvlr, gsm_encr will
only be used in osmo-bsc and can just stay an inline struct.

Related: OS#2272
Change-Id: I15d60441c6c6f053486c0482258a8759bdd92df1
2017-08-21 14:49:39 +02:00
Harald Welte 84b7e3723b Treat SIGTERM just like SIGINT in our programs
When somebody kills the process, it's best to handle the signal
and to use the opportunity for some cleanup.  We always did this
in the NITB on SIGINT, but never on SIGTERM. Let's change it.

Change-Id: Iea6804325a6575ceab5edfd28dd20249462f143b
2017-08-20 19:24:10 +00:00
Harald Welte f0288cacc5 NITB: remove 'help' output about '-a' option that is removed for ages
This option was present in very early versions of the NITB, but
at least since 2011 it is no longer supported.  It's still listed
in --help output, which is wrong.

Change-Id: I1d2cceb588ec5fb34ec5e2c05a7d8c93310bee88
2017-08-18 18:08:14 +00:00
Keith Whyte b4962dcf11 libmsc: Use actual delivery time in delivery reports.
Set the time on the status report to the time the message was delivered, as
this may not be the same as the time when we are delivering the report to the
originating MS.


Change-Id: I9056429d40bf02731f004b7833f1de45a0d1add8
2017-08-18 18:07:53 +00:00
Max a1d8e2c408 gbproxy: log signal value as text
Change-Id: I6ed923f5c60a8d64305f4b8e90d1362d6510e1c5
2017-08-18 18:07:36 +00:00
Max a42b0dff4c gbproxy: log unhandled BSSGP PDU as text
Change-Id: Ibe3c8bd353b3a178e26b0936f25b2e1959f9990c
2017-08-18 18:07:23 +00:00