65 Commits

Author SHA1 Message Date
Pau Espin Pedrol
c45aa8f571 sccp: Handle N-NOTICE.ind (Routing Failure of SCCP CL messages)
ITU Q.714 2.8:
"""
When an end node is informed of a routing failure, this information
is forwarded towards the SCCP user by using the N-DISCONNECT primitive
(refer to reason for release in 2.1.1.2.4/Q.711) or the N-NOTICE primitive
(refer to reason for return in 2.2.2.2.4/Q.711)
"""

We are already handling N-DISCONNECT.ind for CO messages, but
N-NOTICE.ind for CL messages was not being handled.

If CL messages are not arriving to the Lb peer, then reset the link
and mark the peer as disconnected, until a new RESET can successfully fo
through.

Related: OS#5917
Change-Id: I4bfea43a99c768162faefde06558941f697bd718
2025-07-16 18:11:59 +02:00
Pau Espin Pedrol
1416f6497f Introduce stats msc.ran_peers.{total,active}
osmo_stats_init() was already being called despite no stats were being
used.

Change-Id: Ib01576036f34ac7f21c5bce0155b50932eb9b72a
2025-07-15 12:15:18 +02:00
Pau Espin Pedrol
576b13fb19 smlc: Initial implementation of N-PCSTATE.ind
Related: OS#5917
Change-Id: Id034a0c4d8bff0647a64658480dfa9b4cea563de
2025-07-15 12:15:18 +02:00
Pau Espin Pedrol
28748a57bb vty: Create smlc_vty.c
We already have a smlc_vty.h file, but no usual smlc_vty.c file where we
put commands or init functions existed yet.

Change-Id: I6899602c3a6e22ee6ff93540466f839b2bf5ccc1
2025-07-15 12:15:15 +02:00
Pau Espin Pedrol
9b3ab7372b cell_locations.h: Fix includes
No sigtran header is needed as a dependecy in that header.
struct gsm0808_cell_id is defined in gsm0808_utils.h.

Change-Id: Iceedd7a8c2e050e6631c5f471d2eb71ab8ee2432
2025-07-14 19:46:28 +02:00
Pau Espin Pedrol
b585ad15c9 lb_peer: Drop unused events CONNECTION_{SUCCESS,TIMEOUT}
Change-Id: If5d838e3c0cfdb08ea8a96330ea1de4fa73e091a
2025-07-14 19:12:49 +02:00
Pau Espin Pedrol
4f54a410f5 lb_peer: Mark multiple funcs as static
Change-Id: I7178608444f72bfb93b816a0bedee336a5b4cafe
2025-07-14 19:09:31 +02:00
Pau Espin Pedrol
310e21dbf1 lb_peer: Constify ptr arg in lb_peer_find()
Change-Id: Ia1da7ad3f6410a47c3e8d4e4f7f534073f2e0116
2025-07-14 19:05:52 +02:00
Oliver Smith
062390702c Bump version: 0.3.1.4-22f0 → 0.3.2
Change-Id: Iaca50b640d147f01c2c5adebd6e0853cf7502d86
0.3.2
2025-03-05 11:35:12 +01:00
Pau Espin Pedrol
22f0738935 Add missing required vty go_parent_cb for libosmo-sigtran
This callback is required when configuring SS7 network through VTY.

Change-Id: Ibab25aa1a9ed4d0680fb61999e79b56b9a7d08dc
2025-03-04 16:58:11 +01:00
Pau Espin Pedrol
39515ac59e jenkins.sh: No need to build libosmo-sigtran with doxygen
Change-Id: Ic63fbd92cc6e1a5f784ced2ccb5f998e6cabaf27
2024-12-10 16:56:59 +01:00
Pau Espin Pedrol
fea674ee2d jenkins.sh: Skip building unneeded libosmo-abis
Change-Id: I9e763963f22e7fb425faef3b70b821ebd7e7ce60
2024-12-10 16:25:35 +01:00
Oliver Smith
d5c7fd45b2 contrib/jenkins: libosmo-abis after libosmo-netif
Depends: libosmo-abis I079dc3999de508301dd37ed03e399356a58d3cab
Depends: libosmo-netif I13d6e88158f6d9ce017986283183ee9c2cc68cae
Change-Id: I00f1dc510823d947992c8a5b2ce97a22c322b43b
2024-11-22 13:19:26 +01:00
Oliver Smith
88731ffa1f Bump version: 0.3.0.2-bc0a → 0.3.1
Change-Id: I52964c60edfc09cf832b8acb2fff61d0ceed3837
0.3.1
2024-09-16 12:27:16 +02:00
Oliver Smith
bc0ae88168 contrib/jenkins: libosmo-sccp -> libosmo-sigtran
Change-Id: Ia17342097f781f5b8134b5f74c541af84110db78
2024-09-16 12:26:08 +02:00
Harald Welte
74450e80ea remove libosmo-sccp dependency; depend on libosmo-sigtran only
This follows the removal of the libsccp.a and the pkg-config
libosmo-sccp.pc from libosmo-sccp.git

Change-Id: Icacbc75d0cb3fac1920399e261ba4318221f3160
2024-09-10 09:49:56 +02:00
Oliver Smith
ccfd8e40ea Bump version: 0.2.4.7-ebf2 → 0.3.0
Change-Id: Ibdd991c03499926404b92bac9d76238aade4175c
0.3.0
2024-07-25 09:49:50 +02:00
Vadim Yanitskiy
ebf2429f39 README.md: cosmetic: fix a typo
Change-Id: I5cd00ad066223fa33cf76ff1c85fbd810f37062c
2024-06-05 18:34:07 +07:00
Oliver Smith
ddfea86880 debian/postinst: add checks, be verbose
Do not attempt to change permissions/ownership if the package gets
upgraded from a version higher than the next release.

Do not fail if the user deleted the config file.

Be verbose when changing permissions.

Related: OS#4107
Change-Id: I8994759df644d6edd8f937051b95690537b749be
2024-05-14 15:21:06 +02:00
Oliver Smith
b9e204f3bd contrib: remove rpm spec file
Related: https://osmocom.org/news/255
Related: OS#6446
Change-Id: I9e7a3beb861faab1b6852aa5b57847c590986976
2024-05-08 14:41:10 +02:00
Oliver Smith
7dbd34a37e .deb/.rpm: various fixes related to non-root
* Explicitly chown /var/lib/osmocom to osmocom:osmocom, instead of
  relying on systemd to do it when the service starts up. This does not
  work with the systemd versions in debian 10 and almalinux 8.
* deb: Use "useradd" instead of the interactive "adduser" perl script
  from Debian. This makes it consistent with how we do it in rpm, and
  avoids the dependency on "adduser".
* deb: Consistently use tabs through the file, instead of mixing tabs
  and spaces.
* deb: Remove support for the "dpkg-statoverride --list" logic. This
  seems to be a rather obscure feature to override permissions for
  certain files or directories, for which it does not seem to be a good
  idea to make the postinst script less maintainable. Something similar
  can be achieved by using your own Osmocom config file in a different
  path with different permissions.

Related: OS#4107
Change-Id: Ib129217f6aff713d1d0e7aa831b4b54823e9bade
2024-04-26 15:08:47 +02:00
Max
961e96bfd9 .deb/.rpm: add osmocom user during package install
Create osmocom user & group during package installation.
Fix the configuration dir/files permission to match.

Related: OS#4107
Tweaked-By: Oliver Smith <osmith@sysmocom.de>
Change-Id: I459ac6b80526afa0f5d47a8b56f40d5f636dbe28
2024-04-24 16:16:33 +02:00
Vadim Yanitskiy
4b739ac260 build: include README.md into the release tarball
Change-Id: Icef2122de065683ee6a18f507c1834066c950349
2024-01-26 23:38:57 +07:00
Andreas Eversberg
f66763e891 Use uniform log format for default config files
Related: OS#6272
Change-Id: I24f454bd83f32504b9c135d1620b7d02167e8bc6
2023-12-01 12:53:08 +01:00
Pau Espin Pedrol
e7535a4a9b Bump version: 0.2.3.12-7385-dirty → 0.2.4
Change-Id: Ib73d7f15f55a52479a7728f86e96e93bba699ec5
0.2.4
2023-09-12 17:14:42 +02:00
Vadim Yanitskiy
7385427397 configure.ac: migrate from python2 to python3
Fortunatelly we don't have any python2 specific code, so just bump.

Change-Id: Iaab94a1e896b78dc8699256e326edc165b0ed922
Related: OS#5950
2023-07-15 00:47:40 +07:00
Pau Espin Pedrol
81e12318ae Write explicit role & sctp-role fields in ASP configurations
Change-Id: Idf7b2288e93edb408b644da759f844ac0ce1210b
2023-06-08 19:42:04 +02:00
Oliver Smith
85f1cca096 systemd: depend on networking-online.target
Related: SYS#6400
Change-Id: Idadcbbf55e976ae035cfac4b85ccd870e0f27b82
2023-05-26 14:10:49 +02:00
Vadim Yanitskiy
e8c4967639 copyright: fix typo: sysmocom s/s.m.f.c./s.f.m.c./ GmbH
Change-Id: Ib155c44fb318cab38227c196919fc6cbba86c4bb
2023-05-18 17:22:27 +07:00
Neels Janosch Hofmeyr
d09e87c645 ctrl-test: drop bogus 'rm -f $(CTRL_TEST_DB)'
That is a copy-paste artifact from osmo-hlr.git and looks pretty
dangerous when CTRL_TEST_DB is not defined.

Change-Id: Idcf9296a6e7e520c2f0b42f8aace01d616bcfc56
2023-05-05 02:14:01 +02:00
Oliver Smith
386d5acdbe debian: set compat level to 10
Related: OS#5958
Change-Id: Ib45ad7c44cdefa4c5acab2da09f24796253a133d
2023-04-25 16:48:33 +02:00
Vadim Yanitskiy
8c11b24ca0 tests: execute osmotest{vty,config}.py against osmo-smlc
Change-Id: I61d970563a1902cce704d5c1a6adea9d8be438e4
2023-03-30 02:40:18 +07:00
Vadim Yanitskiy
8bcac6f928 tests: $(BUILT_SOURCES) is not defined, depend on osmo-smlc
Change-Id: I75a038b2730c7e0d4637db6dfb780839a49abc2e
2023-03-30 02:19:12 +07:00
Vadim Yanitskiy
74b4e61f36 Makefile.am: remove unneeded AM_LDFLAGS with LIBS
Change-Id: Ic6886d2e47c053fe39647bc9ec3be704c935bee5
2023-03-09 18:10:18 +07:00
Vadim Yanitskiy
7118875839 Makefile.am: remove $(COVERAGE_LDFLAGS) from osmo_smlc_LDADD
Change-Id: Ia7073d2baf4c758ebff167b6cf1b3ba9c1552821
2023-03-09 18:09:44 +07:00
Vadim Yanitskiy
cf29f44722 configure.ac: set -std=gnu11
Avoid using different dialects by accident (and resulting compiler
errors if compiler assumes a different dialect), like in
I72310886bef4db635078b75715c9d98ee45391cc.

Related: https://lists.osmocom.org/pipermail/openbsc/2019-September/013030.html
Related: https://lists.osmocom.org/pipermail/openbsc/2021-January/013360.html
Related: osmo-pcu Ia57ba101627e3cc0babeca82631e207a3e2e0960
Change-Id: I76ed877d160f98e3627293b0539bec5fac1e8469
2023-03-09 15:39:18 +07:00
arehbein
0fda654d29 Transition to use of 'telnet_init_default'
Related: OS#5809
Change-Id: Icc57c68337d55c6594c1c36e9bf41624d11dab0a
2023-02-25 17:48:58 +01:00
Pau Espin Pedrol
848316e9d4 Bump version: 0.2.2.4-5ac8-dirty → 0.2.3
Change-Id: I84d05f283cfd28298f3a4ef6df1c49265638969b
0.2.3
2023-02-07 17:42:01 +01:00
Max
5ac8ab7cd9 ctrl: take both address and port from vty config
Change-Id: I5d73257c0233ce6772847809a6163b6ca4c88f83
2022-12-17 21:32:29 +03:00
Max
518550e404 Set working directory in systemd service file
By default systemd will execute service with root directory
(or home directory for user instance) which might result in
attempts to create files in unexpected place. Let's set it
to 'osmocom' subdir of state directory
(/var/lib for system instance) instead.

Related: OS#4821
Change-Id: Ie8b014e8eac23221a6a7087bb2b886014323680b
2022-09-12 07:12:35 +00:00
Max
f2a03654bb Add git-review config
Change-Id: Ia16bb7936e9382dcc51d9122bd7582d75eb7ae15
2022-09-09 22:40:27 +07:00
Vadim Yanitskiy
accb1d1b25 contrib/jenkins.sh: execute distcheck/maintainer-clean with $PARALLEL_MAKE
Change-Id: I14b0e0343dc70b72cc9e14641bccaa6da2059e46
2022-08-29 00:33:10 +07:00
Pau Espin Pedrol
f30a8a1133 Bump version: 0.2.1.5-cd82-dirty → 0.2.2
Change-Id: I17fe1460bb04da7d10ebaa1410cdb0dd670ece24
0.2.2
2022-06-29 12:21:07 +02:00
Harald Welte
cd82cb23be Fill README with content; convert to markdown
Change-Id: I54297aba4dbb4f521caaeb555de9e5404f9e6dcd
2022-06-18 14:01:07 +02:00
Harald Welte
bc54ff06f8 update git URLs (git -> https; gitea)
Change-Id: I8788fa6b0495b8ee72b1bb5485f6cd3a4835eb0b
2022-06-18 14:01:07 +02:00
Vadim Yanitskiy
b9b65d953f tests: use 'check_PROGRAMS' instead of 'noinst_PROGRAMS'
When using 'check_PROGRAMS', autoconf/automake generates smarter
Makefiles, so that the test programs are not being compiled during
the normal 'make all', but only during 'make check'.

Change-Id: I9b60429c8c3922dd97809c72ed7960ffdc059d8b
2022-04-14 02:18:50 +03:00
Pau Espin Pedrol
454047c586 deb/rpm packaging: Drop dependency on autoconf-archive
it is not needed since ec37263a37.

Change-Id: I729b7dc0f2971b959810a46baa8a344e8b71e4a4
2022-01-11 18:26:44 +01:00
Oliver Smith
5b7f1fd5c8 treewide: remove FSF address
Remove the paragraph about writing to the Free Software Foundation's
mailing address. The FSF has changed addresses in the past, and may do
so again. In 2021 this is not useful, let's rather have a bit less
boilerplate at the start of source files.

Change-Id: Ieb4f9b4ad5073c9b5996cb960b248c450fd5f2dd
2021-12-14 12:22:00 +01:00
Pau Espin Pedrol
8ec775714c Bump version: 0.2.0.2-ec37-dirty → 0.2.1
Change-Id: I4a2e2ff8e5f8d08fb4f8bb1f75e92ede9bb5521f
0.2.1
2021-11-16 18:14:21 +01:00
Oliver Smith
ec37263a37 configure: don't turn some warnings into errors
Do not turn some compiler warnings into errors by default. This part was
copied from openbsc.git 34f012 ("Turn some compiler warnings into
errors"), where it was added before --enable-werror was available.

We build with --enable-werror during development and in CI. If the code
is built with a different compiler that throws additional warnings, it
should not stop the build.

Related: OS#5289
Change-Id: I22f6f4d3d4b81d4791a72a7bce130035bef58c31
2021-11-04 11:12:30 +01:00