fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmocore/+/33911 )
Change subject: gsm_08_08: add missing GSM0808_SCT_EXT
......................................................................
gsm_08_08: add missing GSM0808_SCT_EXT
As per 3GPP TS 48.008, section 3.2.2.103, the "Codec Type" field may
contain either a certain 3GPP Speech Codec Type directly (4 bit value),
or the so called "Codec Extension" = 0xFh, in which case the real Codec
Type follows in the next octet as "Extended Codec Type".
CSD is such an example, the encoding is defined as follows:
8 7 6 5 4 3 2 1
+----+----+----+----+-------------------+
| -- | PI | PT | -- | 0xFh |
+----+----+----+----+-------------------+
| Extended Codec Type (CSData) |
+----+----+-----------------------------+
| R2 | R3 | |
+----+----+-----------------------------+
CSData is coded with 0xFDh or '1111 1101' (0xfd).
We already have GSM0808_SCT_CSD, add the missing GSM0808_SCT_EXT.
Change-Id: Iafaa25070684d2ba400c75fa33e803651a5ce857
Related: OS#6110, OS#4393, OS#4394
---
M include/osmocom/gsm/protocol/gsm_08_08.h
1 file changed, 32 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/11/33911/1
diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h
b/include/osmocom/gsm/protocol/gsm_08_08.h
index 967e4fe..05cfa26 100644
--- a/include/osmocom/gsm/protocol/gsm_08_08.h
+++ b/include/osmocom/gsm/protocol/gsm_08_08.h
@@ -554,6 +554,8 @@
GSM0808_SCT_HR3 = 0x4, /*!< HR_AMR */
GSM0808_SCT_HR4 = 0xd, /*!< OHR AMR-WB */
GSM0808_SCT_HR6 = 0xb, /*!< OHR AMR */
+ GSM0808_SCT_HR6 = 0xb, /*!< OHR AMR */
+ GSM0808_SCT_EXT = 0xf, /*!< Codec Extension (the real Codec Type follows) */
GSM0808_SCT_CSD = 0xfd, /*!< CSData (see also TS 26.103) */
};
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/33911
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iafaa25070684d2ba400c75fa33e803651a5ce857
Gerrit-Change-Number: 33911
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange