diff --git a/_service b/_service
index fd1db39..47457e7 100644
--- a/_service
+++ b/_service
@@ -2,8 +2,8 @@
git
git://git.osmocom.org/libosmo-abis
- 0.4.0
- 0.4.0.@TAG_OFFSET@
+ 0.5.1
+ 0.5.1
*.tar
diff --git a/libosmo-abis-0.4.0.2.tar.xz b/libosmo-abis-0.4.0.2.tar.xz
deleted file mode 100644
index 7613838..0000000
--- a/libosmo-abis-0.4.0.2.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:87f423638bf352ef6ccea118c2996b04220ea2ec347f605cf649492d3f541f66
-size 68296
diff --git a/libosmo-abis-0.5.1.tar.xz b/libosmo-abis-0.5.1.tar.xz
new file mode 100644
index 0000000..225c900
--- /dev/null
+++ b/libosmo-abis-0.5.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c0c873b6dde6ced011bb18e4a15bb4231bafa7eaa917262c738fda586020731f
+size 70608
diff --git a/libosmo-abis.changes b/libosmo-abis.changes
index a3ce27d..cea8004 100644
--- a/libosmo-abis.changes
+++ b/libosmo-abis.changes
@@ -1,3 +1,13 @@
+-------------------------------------------------------------------
+Tue Dec 11 00:56:52 UTC 2018 - Jan Engelhardt
+
+- Update to new upstream release 0.5.1
+ * unixsocket: fix a potential string overflow
+ * fix double-free/use-after-free of pointers in struct e1inp_line
+ * ortp: reset RTP session on SSRC changes
+ * ortp: detect SSRC changes immediately
+ * e1_input: Replace '.' in counter names with ':'
+
-------------------------------------------------------------------
Sun Mar 25 08:57:52 UTC 2018 - jengelh@inai.de
diff --git a/libosmo-abis.spec b/libosmo-abis.spec
index 692326c..765277c 100644
--- a/libosmo-abis.spec
+++ b/libosmo-abis.spec
@@ -12,14 +12,14 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-%define version_unconverted 0.4.0.2
+%define version_unconverted 0.5.1
Name: libosmo-abis
-Version: 0.4.0.2
+Version: 0.5.1
Release: 0
Summary: Osmocom library for A-bis interface between BTS and BSC
License: AGPL-3.0-or-later AND GPL-2.0-or-later
@@ -34,9 +34,9 @@ BuildRequires: automake >= 1.6
BuildRequires: libtool >= 2
BuildRequires: pkgconfig >= 0.20
BuildRequires: xz
-BuildRequires: pkgconfig(libosmocore) >= 0.3.0
-BuildRequires: pkgconfig(libosmogsm) >= 0.3.10
-BuildRequires: pkgconfig(libosmovty) >= 0.3.0
+BuildRequires: pkgconfig(libosmocore) >= 0.12.0
+BuildRequires: pkgconfig(libosmogsm) >= 0.13~git14
+BuildRequires: pkgconfig(libosmovty) >= 0.12.0
BuildRequires: pkgconfig(ortp) >= 0.22
BuildRequires: pkgconfig(talloc)
diff --git a/osmo-talloc.diff b/osmo-talloc.diff
index e390bad..0ad768d 100644
--- a/osmo-talloc.diff
+++ b/osmo-talloc.diff
@@ -9,23 +9,23 @@ The source files use talloc, so link to talloc.
src/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
-Index: libosmo-abis-0.4.0.2/configure.ac
+Index: libosmo-abis-0.5.1/configure.ac
===================================================================
---- libosmo-abis-0.4.0.2.orig/configure.ac
-+++ libosmo-abis-0.4.0.2/configure.ac
-@@ -47,6 +47,7 @@ AC_SUBST(SYMBOL_VISIBILITY)
+--- libosmo-abis-0.5.1.orig/configure.ac
++++ libosmo-abis-0.5.1/configure.ac
+@@ -59,6 +59,7 @@ AC_SUBST(SYMBOL_VISIBILITY)
dnl Generate the output
AM_CONFIG_HEADER(config.h)
+PKG_CHECK_MODULES([TALLOC], [talloc])
- PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0)
- PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
- PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.10)
-Index: libosmo-abis-0.4.0.2/src/Makefile.am
+ PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.12.0)
+ PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.12.0)
+ PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.12.0)
+Index: libosmo-abis-0.5.1/src/Makefile.am
===================================================================
---- libosmo-abis-0.4.0.2.orig/src/Makefile.am
-+++ libosmo-abis-0.4.0.2/src/Makefile.am
-@@ -7,7 +7,7 @@ TRAU_LIBVERSION=2:0:0
+--- libosmo-abis-0.5.1.orig/src/Makefile.am
++++ libosmo-abis-0.5.1/src/Makefile.am
+@@ -7,7 +7,7 @@ TRAU_LIBVERSION=3:1:1
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)
AM_CFLAGS= -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(COVERAGE_CFLAGS)
AM_LDFLAGS = $(COVERAGE_LDFLAGS)