Review at  https://gerrit.osmocom.org/6358

Add GSM 04.08 type-of-number / numbering-plan-id definitions

Change-Id: Idd8d8a7a1c7f0b6cb9318e4f19ebadb415df2ed1
---
M include/osmocom/gsm/protocol/gsm_04_08.h
1 file changed, 22 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/58/6358/1

diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h 
b/include/osmocom/gsm/protocol/gsm_04_08.h
index c785d9f..0e02744 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08.h
@@ -1659,3 +1659,25 @@
 
 #define GSM_MACBLOCK_LEN       23
 #define GSM_MACBLOCK_PADDING   0x2b
+
+/* Table 10.5.118 / 3GPP TS 24.008 Section 10.5.4.7 */
+enum gsm48_type_of_number {
+       GSM48_TON_UNKNOWN       = 0,
+       GSM48_TON_INTERNATIONAL = 1,
+       GSM48_TON_NATIONAL      = 2,
+       GSM48_TON_NET_SPEC      = 3,
+       GSM48_TON_SHORT_CODE    = 4,
+       /* reserved */
+};
+
+/* Table 10.5.118 / 3GPP TS 24.008 Section 10.5.4.7 */
+enum gsm48_numbering_plan {
+       GSM48_NPI_UNKNOWN       = 0,
+       GSM48_NPI_ISDN_E164     = 1,
+       GSM48_NPI_DATA_X121     = 3,
+       GSM48_NPI_TELEX_F69     = 4,
+       GSM48_NPI_NATIONAL      = 8,
+       GSM48_NPI_PRIVATE       = 9,
+       GSM48_NPI_CTS           = 11,
+       /* reserved */
+};

-- 
To view, visit https://gerrit.osmocom.org/6358
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idd8d8a7a1c7f0b6cb9318e4f19ebadb415df2ed1
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to