fixeria has uploaded this change for review.

View Change

codec_mapping: codec_map[]: add missing speech codec for CLEARMODE

Without the gsm0808_speech_codec functions:

* codec_mapping_by_gsm0808_speech_codec_type(), and
* codec_mapping_by_gsm0808_speech_codec()

fail to find the codec mapping for CLEARMODE.

Change-Id: I87b3aedaf7ff7bbbcb381e94158566dc765e3ae6
Related: OS#6110, OS#4394
---
M src/libmsc/codec_mapping.c
1 file changed, 24 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/19/33919/1
diff --git a/src/libmsc/codec_mapping.c b/src/libmsc/codec_mapping.c
index b58efd9..918428a 100644
--- a/src/libmsc/codec_mapping.c
+++ b/src/libmsc/codec_mapping.c
@@ -209,6 +209,13 @@
.subtype_name = "CLEARMODE",
.rate = 8000,
},
+ .has_gsm0808_speech_codec = true,
+ .gsm0808_speech_codec = {
+ .pi = true, /* PI indicates CSDoIP is supported */
+ .pt = false, /* PT indicates CSDoTDM is not supported */
+ .type = GSM0808_SCT_CSD,
+ .cfg = 0, /* R2/R3 not set (redundancy not supported) */
+ },
.mgcp = CODEC_CLEARMODE,
},
};

To view, visit change 33919. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I87b3aedaf7ff7bbbcb381e94158566dc765e3ae6
Gerrit-Change-Number: 33919
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange