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
This commit is contained in:
Oliver Smith 2023-01-24 13:04:47 +01:00
parent 169d50ed4a
commit 26d6b2b5ce
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 },
};