aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran/protocol/mtp.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-03 17:37:10 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-10 10:41:16 +0200
commit2d3a709527c3ba3228d8c5aa14a236b5952079b9 (patch)
tree2e13bddad4c9466bfc81155561a9475c4ef707f2 /include/osmocom/sigtran/protocol/mtp.h
parentc96db7fa585d169eff600ebc291d45b427a6cb16 (diff)
Add new 'osmo_ss7' SS7 core code with M3UA, ASP/AS FSM, ...
This is what aims to be a rather complete/proper implementation of the SIGTRAN + SS7 protocol suite. It has proper abstraction between the layers with primitives, finite state machines for things like the AS and ASP state machines, support for point code routing, etc. What's not implemented at this point: * re-integration of pre-existing SUA (pending) * actual MTP2 and physical E1/T1 link support * different trafic modes like broadcast/fail-over/load-balance Change-Id: I375eb80f01acc013094851d91d1d3333ebc12bc7
Diffstat (limited to 'include/osmocom/sigtran/protocol/mtp.h')
-rw-r--r--include/osmocom/sigtran/protocol/mtp.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/protocol/mtp.h b/include/osmocom/sigtran/protocol/mtp.h
new file mode 100644
index 0000000..8b990c0
--- /dev/null
+++ b/include/osmocom/sigtran/protocol/mtp.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <osmocom/core/utils.h>
+
+/* Chapter 15.17.4 of Q.704 + RFC4666 3.4.5. */
+/* Section 5.1 of ETSI EG 201 693: MTP SI code allocations (for NI= 00) */
+enum mtp_si_ni00 {
+ MTP_SI_SNM = 0,
+ MTP_SI_STM = 1,
+ MTP_SI_SCCP = 3,
+ MTP_SI_TUP = 4,
+ MTP_SI_ISUP = 5,
+ MTP_SI_DUP = 6, /* call related */
+ MTP_SI_DUP_FAC = 7, /* facility related */
+ MTP_SI_TESTING = 8,
+ MTP_SI_B_ISUP = 9,
+ MTP_SI_SAT_ISUP = 10,
+ MTP_SI_SPEECH = 11, /* speech processing element */
+ MTP_SI_AAL2_SIG = 12,
+ MTP_SI_BICC = 13,
+ MTP_SI_GCP = 14,
+};
+
+extern const struct value_string mtp_si_vals[];