9
0
Fork 0
Commit Graph

6286 Commits

Author SHA1 Message Date
Pau Espin 4aab79d51f osmo-bsc-mgcp.service: Fix parsing of cmdline option s
From journald output:
/usr/bin/osmo-bsc_mgcp: invalid option -- 's'

Change-Id: I995d2f5909640fc007aa39dd6c6b54ff97ee45f7
2019-03-20 18:43:43 +01:00
Keith Whyte f706b39eb6 Don't deliver alert notifications to an ESME that
is not yet bound.

We create a new ESME in smsc->esme_list on establishment
of a TCP connection, yet we do not know the system id or
anything else, until the ESME identifies and authenticates.
So do not send alert notifications until we know the
bind status (and system_id)

Change-Id: I0e5d55d3fb6ac46d253902df2fe304e1b0fc8bbf
2019-02-28 15:15:58 +00:00
Pau Espin ed8815e723 Bump version: 1.1.0.120-9981 → 1.2.0
Change-Id: I33e1c83a0000789f65acc0b7584d1629a50b384c
2019-01-30 21:13:12 +01:00
Max 998179ed2e Remove osmocom-ipaccess-utils-dbg package
The rest was dropped in I9c04f9b469e60802461a2a6e421d3ba27e6dafa1.

Change-Id: If56c288121bd26fead9a921c1f04f9958468e1b6
2019-01-24 19:04:54 +00:00
Max 54e3f0f3ca Remove openbsc-dev package
There're no external utilities which rely on it anymore so we can
simplify our packaging by removing it.

Change-Id: I9a96c217999416099aa7ce690845f56fc132274c
2019-01-24 19:04:54 +00:00
Max f58c9d2404 Remove meas_* utils
The counterparts in OsmoBSC repo are actively maintained and (partially) packaged
for .deb - let's drop old versions to minimize user confusion.

Change-Id: Ia0cedaad4b717c8c5198842e2acd610f8e03f957
2019-01-24 19:04:54 +00:00
Max 81675b1e51 fix build: apply msgb_wrap_with_TL() rename
After libosmocore commit
If1e851ac605c8d2fde3da565b0bd674ea6350c2e
b27e6feb699712345373e87a48187dc622e4fa92
the openbsc master build is broken.

Apply the msgb_wrap_with_TL() rename to msgb_push_tl() to unbreak the build.

Also related is commit e8cd09dd6f in this
repository, which removed the locally defined msgb_wrap_with_TL() definition.
The libosmocore mistake should have become obvious then and there...

Change-Id: I6fece7bbbea84962daff885e54f0bc0108c8d0a5
2019-01-22 02:38:33 +01:00
Keith Whyte 6504c9d391 Cosmetic: Fix spelling in smpp vty
Change-Id: If2180828e2acd28d96754c593c317c2868644c4b
2019-01-17 15:04:54 +00:00
Keith Whyte 4365ca3ffd Make alert notifications vty configurable per ESME
OSMO-MSC backport

Adds (no) alert-notifications as a per-esme vty command,
in order to allow some ESMEs to be excluded from alerts.
The default is still to send alert notifications to all esme,
so no changes are required to the config file to maintain
identical operation after this patch.

Change-Id: I2b52f2778b24eebc82b2e5e2fb3c2250b1f9e5b0
2019-01-17 01:29:07 +01:00
Keith Whyte 32ece274bf Don't send SMS STATUS REPORT locally if the ESME accepted it.
Backport of https://gerrit.osmocom.org/11792/

When using smpp-first, after the ESME accepts our STATUS REPORT,
we were sending it locally into gsm340_rx_sms_submit() anyway.
In the case of the ESME mirroring the report back to us, this
would result in two copies of the status report in the SMS
database, which were also both then delivered to the MS.
Some MS then display the REPORT to the user as if it were
a normal SMS.

With this patch, we check if it is the sms_report that has had
receiver set in sms_route_mt_sms() and not the original SMS we
are reporting on, which of course already has receiver set.

Change-Id: I2136489bd21c4755463278a4048a446e5bc4a9d2
2019-01-12 14:20:32 +01:00
Oliver Smith 5e06846b52 contrib/jenkins.sh: build and publish manuals
Add new environment variables WITH_MANUALS and PUBLISH to control if
the manuals should be built and uploaded. Describe all environment vars
on top of the file.

Related: OS#3385
Change-Id: I89be11d346d50169282c991235ffc47dacc30b11
2018-12-12 14:08:55 +01:00
Oliver Smith 117d7a9634 contrib: fix makedistcheck with disabled systemd
EXTRA_DIST files need to be distributed, no matter if the systemd option
is configured or not.

Change-Id: I8dbb17571df5d6cea040498af2fe57f087bdeb24
2018-12-06 16:31:17 +00:00
Max 07bcda7554 Remove ipaccess utils
There's increasing gap in functionality between ipaccess utils from this
repo and from osmo-bsc due to ongoing development in new repository. To
avoid potential user confusion let's drop them similar to the way SGSN
was removed earlier.

Change-Id: I9c04f9b469e60802461a2a6e421d3ba27e6dafa1
2018-12-06 09:56:35 +00:00
Oliver Smith d0415ec117 Fix DISTCHECK_CONFIGURE_FLAGS override
Set AM_DISTCHECK_CONFIGURE_FLAGS in Makefile.am instead of
DISTCHECK_CONFIGURE_FLAGS. This is the recommended way from the
automake manual, as otherwise the flag can't be changed by the user
anymore.

Related: OS#3718
Change-Id: I88cc2058bc4ff07d092b060d4cc4e28c3203c625
2018-12-04 15:38:38 +01:00
Oliver Smith 4320f89f7d manuals: Osmo{NAT,MGCP} -> OsmoBSC{NAT,MGCP}
Rename the manuals to their proper names.

Change-Id: I8c020361c141c758bfb32562dbd7f34f4fd81c39
2018-11-30 10:35:03 +01:00
Oliver Smith 8c4bfaf4cf OsmoMGCP and OsmoNAT manuals moved from osmo-gsm-manuals.git
Add both manuals to manuals/OsmoMGCP and manuals/OsmoNAT. Build them
just like the existing OsmoNITB manual:

$ cd manuals/OsmoMGCP
$ make

The commit history only consisted of the initial commit and was not
imported.

Related: OS#3385
Change-Id: Ibace91bc518079765e12529596a1763b6c5a04b5
2018-11-29 16:19:47 +01:00
Oliver Smith eaa61bff5d manuals/OsmoNITB: integrate into this repository
Move from doc/manuals to manuals/OsmoNITB as we have two more manuals
(OsmoMGCP and OsmoNAT) that need to be moved to manuals/. Make the
manuals build without a toplevel configure.ac file from autotools:

$ cd manuals/OsmoNITB
$ make

openbsc/configure.ac is not used to integrate the manuals, as it would
be extra effort to integrate all three of the manuals there. This is
not worth it for the legacy codebase.

Related: OS#3385
Change-Id: I0036ad8dbecd23695305ac491c7ee87caa44c7f9
2018-11-29 16:19:08 +01:00
Oliver Smith 751f410a05 build manuals moved here from osmo-gsm-manuals.git
Moved to doc/manuals/, with full commit history, in preceding merge commit.
Now incorporate in the build system.

Build with:

$ autoreconf -fi
$ ./configure --enable-manuals
$ make

Shared files from osmo-gsm-manuals.git are found automatically if
- the repository is checked out in ../osmo-gsm-manuals; or
- if it osmo-gsm-manuals was installed with "make install"; or
- OSMO_GSM_MANUALS_DIR is set.

Related: OS#3385
Change-Id: I4466d820cb3a5609a4a8534b1581684f891a04cd
2018-11-28 17:01:23 +01:00
Neels Hofmeyr 3d3086d715 Merge history from osmo-gsm-manuals.git
Change-Id: I298828d47ce86c13301f5ab245934fbcf8d8d2d3
2018-11-28 17:00:18 +01:00
Oliver Smith 310f617417 vty/bsc_vty_additions.xml: copy from osmo-bsc
Replace the symlink with a full copy, as the manuals are in the project
repositories now.

Related: OS#3385
2018-11-28 17:00:07 +01:00
Neels Hofmeyr a472fd1315 author info: add "former" to Holger's job title
It doesn't seem to have an effect on the generated PDFs though.

Change-Id: I0556a3f8dafc051f20a3854fc9006edf4ec1a0d3
2018-11-28 17:00:07 +01:00
Harald Welte d06be39c55 vty-ref: Update URI of docbook 5.0 schema
... to match the /etc/xml/catalog file on debian (no "www" in hostname)

Change-Id: Id9f3579c7f2bc3af13fe30b5268f249b6f59ed0d
2018-11-28 17:00:07 +01:00
Neels Hofmeyr d70979c8ec refactor Makefile build rules, don't use the FORCE
The initial goal was to make sure we don't have overall FORCE rules causing
unnecessary rebuilds -- annoying while writing documentation. As I looked
through possible dependencies, I finally understood what's going on here.

Remove code dup and nicely sort which belongs where in build/Makefile.*.inc. In
each, describe in a top comment how to use it, and also unify how they are
used:

- Rename Makefile.inc to Makefile.docbook.inc and refactor
- Add Makefile.vty-reference.inc
- Add Makefile.common.inc

Make sure that we accurately pick up all dependencies.

Drop use of the macro called 'command', that silenced the actual command lines
invoked and replaced them with short strings: it obscures what is actually
going on and makes the Makefiles hard to read and understand.

Each manual's makefile is greatly reduced to few definitions and a Makefile
include, e.g. one for asciidoc, one for VTY reference.

Move common/bsc_vty_additions.xml to OsmoBSC/vty/libbsc_vty_additions.xml, link
from OsmoNITB. It applies only to OsmoBSC and OsmoNITB.

Add a script that combines a VTY reference file with *all* additions files
found in a manual's vty/ dir. Call this from Makefile.vty-reference.inc.

Change-Id: I9758e04162a480e28c7dc83475b514cf7fd25ec0
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 3fe180e237 OsmoNITB: update vty reference
Change node IDs to use the names derived from the node prompt,
in the process fix the node references to not place the vty_additions in the
wrong places.

Related: I8fa555570268b231c5e01727c661da92fad265de (libosmocore)
Change-Id: I48edb65be94be56c4b57293d8edc1b30271acc12
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 13cdf99caa move smpp.adoc to common chapters, generalize
OsmoMSC will need the same SMPP chapter as OsmoNITB.

In smpp.adoc, replace program name with parameter, add parameter to
OsmoNITB's main adoc and move smpp.adoc to common/chapters.

Change-Id: I15febdea6569316dad3eed5f9dc7158adb5b078c
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 91c1aab46f tweak common/mncc.adoc: use variable for program name
Change-Id: I993a3c3bf617b9823f49898364b5f728a4549330
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 92c76e1255 move mncc.adoc to common chapters
Upcoming OsmoMSC will reference the same, hence MNCC becomes a common chapter.

Move the file and adjust various wording to include OsmoMSC.

Change-Id: I404758ff7f1372e841ffe33c75455f513fff3caf
2018-11-28 17:00:07 +01:00
Pau Espin 3eaa5ac155 Allow easily disabling GFDL references
All parts referencing GFDL can be easily disabled by removing the
'gfdl-enabled' attribute from the document.

Change-Id: I2489726ad2e90301bceadfada926e31ae0f85986
2018-11-28 17:00:07 +01:00
Harald Welte 397e5d7e4c SMPP: Document Osmocom extensions
Change-Id: I4cedd07a33633bdd2350d2bda0a22cc0c631c0a9
2018-11-28 17:00:07 +01:00
Pau Espin 4e6f4dc38a smpp.adoc: describe VTY cmd 'local-tcp-ip' instead of 'local-tcp-port'
Change-Id: I594b89094413758146bb25f5262902e263f8f3d1
2018-11-28 17:00:07 +01:00
Philipp Maier da78380efc osmo-nitb: Update VTY command reference
Change-Id: Ia4c2d71eeca853ef277e802e9e8e200eb3414bca
2018-11-28 17:00:07 +01:00
Harald Welte 3018102897 Add chapter on Cell Broadcast Support in Osmocom (to BSC+NITB manual)
Change-Id: I2c621def499dc0564d31eb9440e22e79948a5466
2018-11-28 17:00:07 +01:00
Philipp Maier c5b6a6fed6 Describe how to run multiple instances of osmo-nitb and osmo-bts
Change-Id: I69adeef85adda6f08b31b7d176f51e16968c1435
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 405679260b fix 'make clean': shell glob, ignore failure
Unfortunately a glob like osmo-x__*.{svg,png} doesn't work, so have the
suffixes in separate globs.

Add dashes to indicate that failure should be ignored.

Change-Id: I6bc4d9ea72b43a573acbc860c23397f748de2c7b
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 68628df4b9 OsmoNITB: include abis.adoc from common/chapters/
Change-Id: If3d92fe19d402d77b0db0eb9d00efef0a8d02122
2018-11-28 17:00:07 +01:00
Neels Hofmeyr df3b5d83cf OsmoBSC+NITB/running: fix title levels, one too deep
Change-Id: If81e44c9a0774e5de39cc536989cef5cb214a224
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 30b853b876 add 'make check' target
Generate *.check files from asciidoc output and grep for WARNINGs.
Add *.check files to gitignore and to 'make clean'.

Change-Id: Ibccc83a3415930a528f2e8e4e4dda3b81c6d0b64
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 671f66b02e make clean: also remove generated image files
Change-Id: I80798e79b4ccee64f26f58f9754de02b2958e33e
2018-11-28 17:00:07 +01:00
Ivaylo Kostov 0a1872037f Typo in Chapter 14.2 2018-11-28 17:00:07 +01:00
Max 92786f6bb0 Add OsmoNITB control interface description 2018-11-28 17:00:07 +01:00
Jonathan Brielmaier d05b26c9ce fix various typos across all manuals 2018-11-28 17:00:07 +01:00
Harald Welte 9f5d249273 OsmoNITB HLR: expand on how to create subscribers 2018-11-28 17:00:07 +01:00
Harald Welte e01f76eb87 Add link to Asciidoc source code of manual 2018-11-28 17:00:07 +01:00
Harald Welte ea6675bcc4 initial checkin of manuals to public repo
The manuals existed in different form for several years in an internal
sysmocom repository.  However, since they had just recently been
converted from docboox-xml to asciidoc and all files have been
re-shuffled for enabling the public release, there's not much point in
keeping the history with git-filter-branch.
2018-11-28 17:00:07 +01:00
Neels Hofmeyr 3f1b2a783a Importing history from osmo-gsm-manuals
Change-Id: I4ca2ce35f68ca5e2a82dc70e240e76c741199adb
2018-11-28 16:59:06 +01:00
Pau Espin 60d86b7d29 bsc-nat: Enable octet-aligned when ensuring mode set
From RFC 4867:
      octet-align: Permissible values are 0 and 1.  If 1, octet-aligned
               operation SHALL be used.  If 0 or if not present,
               bandwidth-efficient operation is employed.

Change-Id: Ic4db7f6d18f650f36f3186965096771f748de5fd
2018-11-27 07:44:12 +00:00
Max e8cd09dd6f Fix build with latest libosmocore
Remove locally defined function which conflicts with the one in
libosmocore.

Change-Id: Ifcc13c4f8998af7680fc17414b2720feee7d386a
2018-11-19 11:26:26 +01:00
Pau Espin 0bbb914a70 mgcp: osmux_send_dummy: Fix return without value
Not really critical since only user of this function doesn't check the
return value.

Fixes commit: 4a2cc9eb0a
Change-Id: I438349bffaa46a10ad8983090a4b17aed7e00d82
2018-10-16 16:18:29 +02:00
Pau Espin 9ae32d0d06 osmux.h: Document enum osmux_state
Change-Id: If5de6e981e9af7b667dd3365d758f868f38bf6e0
2018-10-12 21:16:27 +02:00
Pau Espin 4a2cc9eb0a mgcp: osmux: Improve checks around activating and using enabled osmux
* Refactor code to have unified checks on all paths activating Osmux.
* Improve checkings at activation time and add logging.
* Code now enforces endp osmux status to be enabled before processing
the frame through endp->osmux.out. Before, a delayed or bad pkt could
arrive and be processed by an endp with osmux not enabled, using
endp->osmux.out that was not initialized and ended up crashing:
libosmo-netif/src/osmux.c:281:3: runtime error: member access within null pointer of type 'struct msgb'

This could also happen if a BSC started sending or we received (non legacy dummy) osmux
frames before we received the BSC CRCX ACK agreeing on osmux negotiation
and switching to ACTIVATING state.

Related: SYS#4350
Change-Id: I3536169c94e65f999aaa9c9e43cc7dab8551d30f
2018-10-12 20:52:40 +02:00