aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-05-06 19:29:11 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-19 07:28:02 +0000
commit4faff9ef8693660f2ec59f9f305670349730affe (patch)
tree2f9053c1835d2f203cfd5a93986b303249ef0af7 /include
parenta10d79eab1e763ad5a3cd8f9d975532da5e9aa5e (diff)
vty: Add option to enable osmux towards BSCs
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/Makefile.am1
-rw-r--r--include/osmocom/msc/gsm_data.h4
-rw-r--r--include/osmocom/msc/osmux.h11
3 files changed, 16 insertions, 0 deletions
diff --git a/include/osmocom/msc/Makefile.am b/include/osmocom/msc/Makefile.am
index 9ca4c3851..0d7d45ce9 100644
--- a/include/osmocom/msc/Makefile.am
+++ b/include/osmocom/msc/Makefile.am
@@ -28,6 +28,7 @@ noinst_HEADERS = \
msc_t_remote.h \
msub.h \
neighbor_ident.h \
+ osmux.h \
paging.h \
ran_conn.h \
ran_infra.h \
diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h
index 42bb69a06..f6e3ed99f 100644
--- a/include/osmocom/msc/gsm_data.h
+++ b/include/osmocom/msc/gsm_data.h
@@ -19,6 +19,7 @@
#include <osmocom/msc/neighbor_ident.h>
#include "gsm_data_shared.h"
+#include "osmux.h"
/** annotations for msgb ownership */
#define __uses
@@ -231,6 +232,9 @@ struct gsm_network {
uint64_t range_end;
uint64_t next;
} handover_number;
+
+ /* Whether we want to use Osmux against BSCs. Controlled via VTY */
+ enum osmux_usage use_osmux;
};
struct osmo_esme;
diff --git a/include/osmocom/msc/osmux.h b/include/osmocom/msc/osmux.h
new file mode 100644
index 000000000..7af32fc7f
--- /dev/null
+++ b/include/osmocom/msc/osmux.h
@@ -0,0 +1,11 @@
+#pragma once
+
+enum osmux_usage {
+ /* MSC won't use Osmux in call legs towards its RAN */
+ OSMUX_USAGE_OFF = 0,
+ /* MSC will use Osmux in call legs towards RAN as long as RAN announced support for it */
+ OSMUX_USAGE_ON = 1,
+ /* MSC will always use Osmux in call legs towards its RAN, and will
+ reject calls for RANs which didn't announce support for it */
+ OSMUX_USAGE_ONLY = 2,
+};