osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-mgw/+/31059 )
Change subject: mgcp_client: add new clearmode codec
......................................................................
mgcp_client: add new clearmode codec
According to RFC 4040, the payload type is dynamically assigned. Choose
97, the next free one in the 96-127 range for dynamically assigned
payload types. It's also the one used in the example in RFC 4040
section 5.
Related: OS#4395
Related:
https://www.rfc-editor.org/rfc/rfc4040#section-5
Change-Id: I55f9fe241a405935dbedc3947b0a4f4986acd5cb
---
M include/osmocom/mgcp_client/mgcp_client.h
M src/libosmo-mgcp-client/mgcp_client.c
2 files changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/59/31059/1
diff --git a/include/osmocom/mgcp_client/mgcp_client.h
b/include/osmocom/mgcp_client/mgcp_client.h
index b40923d..df4ed9d 100644
--- a/include/osmocom/mgcp_client/mgcp_client.h
+++ b/include/osmocom/mgcp_client/mgcp_client.h
@@ -50,6 +50,7 @@
CODEC_AMR_8000_1 = 112,
CODEC_AMRWB_16000_1 = 113,
CODEC_IUFP = 96,
+ CODEC_CLEARMODE = 97,
};
/* 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 6f1ab6b..c3ecc9f 100644
--- a/src/libosmo-mgcp-client/mgcp_client.c
+++ b/src/libosmo-mgcp-client/mgcp_client.c
@@ -60,6 +60,7 @@
{ 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 },
};
--
To view, visit
https://gerrit.osmocom.org/c/osmo-mgw/+/31059
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I55f9fe241a405935dbedc3947b0a4f4986acd5cb
Gerrit-Change-Number: 31059
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange