laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-mgw/+/26822 )
Change subject: Make function amr_is_octet_aligned publicly available
......................................................................
Make function amr_is_octet_aligned publicly available
it will be used by mgcp_iuup.c in follow-up patch.
Change-Id: Iffaf90c1f713feef0c609a7581a346f5f28141d9
---
M include/osmocom/mgcp/mgcp_codec.h
M src/libosmo-mgcp/mgcp_codec.c
2 files changed, 3 insertions(+), 2 deletions(-)
Approvals:
laforge: Looks good to me, but someone else must approve
dexter: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/include/osmocom/mgcp/mgcp_codec.h b/include/osmocom/mgcp/mgcp_codec.h
index 97650e4..97e6b8d 100644
--- a/include/osmocom/mgcp/mgcp_codec.h
+++ b/include/osmocom/mgcp/mgcp_codec.h
@@ -17,3 +17,4 @@
int mgcp_codec_pt_translate(struct mgcp_conn_rtp *conn_src, struct mgcp_conn_rtp
*conn_dst, int payload_type);
const struct mgcp_rtp_codec *mgcp_codec_pt_find_by_subtype_name(struct mgcp_conn_rtp
*conn,
const char *subtype_name, unsigned int match_nr);
+bool mgcp_codec_amr_is_octet_aligned(const struct mgcp_rtp_codec *codec);
diff --git a/src/libosmo-mgcp/mgcp_codec.c b/src/libosmo-mgcp/mgcp_codec.c
index 70a6638..6b8d14a 100644
--- a/src/libosmo-mgcp/mgcp_codec.c
+++ b/src/libosmo-mgcp/mgcp_codec.c
@@ -355,7 +355,7 @@
*
*
https://tools.ietf.org/html/rfc4867
*/
-static bool amr_is_octet_aligned(const struct mgcp_rtp_codec *codec)
+bool mgcp_codec_amr_is_octet_aligned(const struct mgcp_rtp_codec *codec)
{
if (!codec->param_present)
return false;
@@ -379,7 +379,7 @@
if (strcmp(codec_a->subtype_name, codec_b->subtype_name))
return false;
if (!strcmp(codec_a->subtype_name, "AMR")) {
- if (amr_is_octet_aligned(codec_a) != amr_is_octet_aligned(codec_b))
+ if (mgcp_codec_amr_is_octet_aligned(codec_a) !=
mgcp_codec_amr_is_octet_aligned(codec_b))
return false;
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-mgw/+/26822
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Iffaf90c1f713feef0c609a7581a346f5f28141d9
Gerrit-Change-Number: 26822
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged