From 26d6b2b5ce2cd31c079f3873ff9b79122ba9e039 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 24 Jan 2023 13:04:47 +0100 Subject: [PATCH] mgcp_client: add new clearmode codec Set 120 as payload type, as specified in 3GPP TS 48.103 table 5.4.2.2.1. Related: OS#4395 Related: https://www.rfc-editor.org/rfc/rfc4040#section-5 Change-Id: I55f9fe241a405935dbedc3947b0a4f4986acd5cb --- include/osmocom/mgcp_client/mgcp_client.h | 1 + src/libosmo-mgcp-client/mgcp_client.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/osmocom/mgcp_client/mgcp_client.h b/include/osmocom/mgcp_client/mgcp_client.h index b40923dfe..0fb5deee0 100644 --- a/include/osmocom/mgcp_client/mgcp_client.h +++ b/include/osmocom/mgcp_client/mgcp_client.h @@ -50,6 +50,7 @@ enum mgcp_codecs { CODEC_AMR_8000_1 = 112, CODEC_AMRWB_16000_1 = 113, CODEC_IUFP = 96, + CODEC_CLEARMODE = 120, /* 3GPP TS 48.103 table 5.4.2.2.1 */ }; /* Note: when new codec types are added, the corresponding value strings * in mgcp_client.c (codec_table) must be updated as well. Enumerations diff --git a/src/libosmo-mgcp-client/mgcp_client.c b/src/libosmo-mgcp-client/mgcp_client.c index 6f1ab6b2c..c3ecc9fb7 100644 --- a/src/libosmo-mgcp-client/mgcp_client.c +++ b/src/libosmo-mgcp-client/mgcp_client.c @@ -60,6 +60,7 @@ const struct value_string osmo_mgcpc_codec_names[] = { { CODEC_AMR_8000_1, "AMR/8000/1" }, { CODEC_AMRWB_16000_1, "AMR-WB/16000/1" }, { CODEC_IUFP, "VND.3GPP.IUFP/16000" }, + { CODEC_CLEARMODE, "CLEARMODE/8000" }, { 0, NULL }, };