summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-13 15:15:50 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-13 15:16:48 +0100
commit533f63f15aa584eec73044802e0a8bc798a313fe (patch)
tree3652e8dd55703a1678b77589e76b700f785d62ab
parentca69388be813c614ff706b6b6d91b25a14a5a973 (diff)
Add smpp34_osmocom.h for Osmocom SMPP vendor additions
-rw-r--r--include/Makefile.am1
-rw-r--r--include/osmocom/gsm/protocol/smpp34_osmocom.h48
2 files changed, 49 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 317968aa..f36ba4f0 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -66,6 +66,7 @@ nobase_include_HEADERS = \
osmocom/gsm/protocol/gsm_12_21.h \
osmocom/gsm/protocol/gsm_44_318.h \
osmocom/gsm/protocol/ipaccess.h \
+ osmocom/gsm/protocol/smpp34_osmocom.h \
osmocom/gsm/rsl.h \
osmocom/gsm/rxlev_stat.h \
osmocom/gsm/sysinfo.h \
diff --git a/include/osmocom/gsm/protocol/smpp34_osmocom.h b/include/osmocom/gsm/protocol/smpp34_osmocom.h
new file mode 100644
index 00000000..20e9206e
--- /dev/null
+++ b/include/osmocom/gsm/protocol/smpp34_osmocom.h
@@ -0,0 +1,48 @@
+#ifndef _SMPP34_OSMOCOM_H
+#define _SMPP34_OSMOCOM_H
+/* Osmocom SMPP extensions */
+
+/* Osmocom specific new TLV definitions */
+
+/* ARFCN in 16-bit encoding, highest bit: PCS(1) / DCS(0) */
+#define TLVID_osmo_arfcn 0x2300
+/* Timing advance as uint8_t */
+#define TLVID_osmo_ta 0x2301
+/* Receive signal level (uplink) as int16_t in dBm */
+#define TLVID_osmo_rxlev_ul 0x2302
+/* Receive signal quality (uplink) as uint8_t */
+#define TLVID_osmo_rxqual_ul 0x2303
+/* Receive signal level (downlink) as int16_t in dBm */
+#define TLVID_osmo_rxlev_dl 0x2304
+/* Receive signal quality (downlink) as uint8_t */
+#define TLVID_osmo_rxqual_dl 0x2305
+/* IMEI of the subscriber, if known */
+#define TLVID_osmo_imei 0x2306
+/* MS Layer 1 Transmit Power */
+#define TLVID_osmo_ms_l1_txpwr 0x2307
+/* BTS Layer 1 Transmit Power */
+#define TLVID_osmo_bts_l1_txpwr 0x2308
+
+
+/* DELIVER_SM can contain the following optional Osmocom TLVs:
+ * TLVID_osmo_arfcn
+ * TLVID_osmo_ta
+ * TLVID_osmo_rxlev_ul
+ * TLVID_osmo_rxqual_ul
+ * TLVID_osmo_rxlev_dl
+ * TLVID_osmo_rxqual_dl
+ * TLVID_osmo_imei
+ */
+
+/* SUBMIT_SM_RESP (transaction mode) can contain the following optional
+ * Osmocom TLVs:
+ * TLVID_osmo_arfcn
+ * TLVID_osmo_ta
+ * TLVID_osmo_rxlev_ul
+ * TLVID_osmo_rxqual_ul
+ * TLVID_osmo_rxlev_dl
+ * TLVID_osmo_rxqual_dl
+ * TLVID_osmo_imei
+ */
+
+#endif