Projects
osmocom:master
osmo-mgw
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 23
View file
osmo-mgw.spec
Changed
@@ -17,13 +17,13 @@ Name: osmo-mgw Requires: osmocom-master -Version: 1.10.0.99.d266c +Version: 1.10.0.101.58c0 Release: 0 Summary: Osmocom's Media Gateway for 2G and 3G circuit-switched mobile networks License: AGPL-3.0-or-later AND GPL-2.0-or-later Group: Hardware/Mobile URL: https://osmocom.org/projects/osmo-mgw -Source: osmo-mgw_1.10.0.99.d266c.tar.xz +Source: osmo-mgw_1.10.0.101.58c0.tar.xz Source1: rpmlintrc BuildRequires: automake >= 1.9 BuildRequires: libtool >= 2
View file
commit_58c0b0a6f7ceb512d433c840f79bc1cdada43adb.txt
Added
View file
commit_d266c374ee3e6b227512c9f9c7342a99d5b3a316.txt
Deleted
View file
osmo-mgw_1.10.0.99.d266c.dsc -> osmo-mgw_1.10.0.101.58c0.dsc
Changed
@@ -2,7 +2,7 @@ Source: osmo-mgw Binary: osmo-mgw, libosmo-mgcp-client9, libosmo-mgcp-client-dev, osmo-mgw-doc Architecture: any all -Version: 1.10.0.99.d266c +Version: 1.10.0.101.58c0 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://osmocom.org/projects/osmo-mgw Standards-Version: 3.9.8 @@ -15,8 +15,8 @@ osmo-mgw deb net extra arch=any osmo-mgw-doc deb doc optional arch=all Checksums-Sha1: - 2db5a60de506dc2a9e14d05e08c1ceca0440112c 163056 osmo-mgw_1.10.0.99.d266c.tar.xz + 69dee875a3baabe38140352609417bc3c0942208 163088 osmo-mgw_1.10.0.101.58c0.tar.xz Checksums-Sha256: - ab5a0d035d4797e816cde7f4f563d7d6ad3e50174976841f789f174b1f81aa05 163056 osmo-mgw_1.10.0.99.d266c.tar.xz + b51bea16fce2b8341c2abe9989305730c599e10608edef96bb09656bdeb0dacf 163088 osmo-mgw_1.10.0.101.58c0.tar.xz Files: - 72eee018f9267d93f2a535b1b4f5b1de 163056 osmo-mgw_1.10.0.99.d266c.tar.xz + 8d5f70a08a9599db9a381206fb31ece8 163088 osmo-mgw_1.10.0.101.58c0.tar.xz
View file
osmo-mgw_1.10.0.99.d266c.tar.xz/.tarball-version -> osmo-mgw_1.10.0.101.58c0.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.10.0.99-d266c +1.10.0.101-58c0
View file
osmo-mgw_1.10.0.99.d266c.tar.xz/debian/changelog -> osmo-mgw_1.10.0.101.58c0.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -osmo-mgw (1.10.0.99.d266c) unstable; urgency=medium +osmo-mgw (1.10.0.101.58c0) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Tue, 25 Oct 2022 16:33:15 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Wed, 26 Oct 2022 09:48:14 +0000 osmo-mgw (1.10.0) unstable; urgency=medium
View file
osmo-mgw_1.10.0.99.d266c.tar.xz/include/osmocom/mgcp/mgcp_codec.h -> osmo-mgw_1.10.0.101.58c0.tar.xz/include/osmocom/mgcp/mgcp_codec.h
Changed
@@ -17,4 +17,5 @@ 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_align_mode_is_indicated(const struct mgcp_rtp_codec *codec); bool mgcp_codec_amr_is_octet_aligned(const struct mgcp_rtp_codec *codec);
View file
osmo-mgw_1.10.0.99.d266c.tar.xz/src/libosmo-mgcp/mgcp_codec.c -> osmo-mgw_1.10.0.101.58c0.tar.xz/src/libosmo-mgcp/mgcp_codec.c
Changed
@@ -345,6 +345,18 @@ return -EINVAL; } +/* Check if the codec has a specific AMR mode (octet-aligned or bandwith-efficient) set. */ +bool mgcp_codec_amr_align_mode_is_indicated(const struct mgcp_rtp_codec *codec) +{ + if (codec->param_present == false) + return false; + if (!codec->param.amr_octet_aligned_present) + return false; + if (strcmp(codec->subtype_name, "AMR") != 0) + return false; + return true; +} + /* Return true if octet-aligned is set in the given codec. Default to octet-aligned=0, i.e. bandwidth-efficient mode. * See RFC4867 "RTP Payload Format for AMR and AMR-WB" sections "8.1. AMR Media Type Registration" and "8.2. AMR-WB * Media Type Registration":
View file
osmo-mgw_1.10.0.99.d266c.tar.xz/src/libosmo-mgcp/mgcp_network.c -> osmo-mgw_1.10.0.101.58c0.tar.xz/src/libosmo-mgcp/mgcp_network.c
Changed
@@ -769,20 +769,6 @@ return msgb_trim(msg, rc + sizeof(struct rtp_hdr)); } -/* Check if a conversion between octet-aligned and bandwith-efficient mode is - * indicated. */ -static bool amr_oa_bwe_convert_indicated(struct mgcp_rtp_codec *codec) -{ - if (codec->param_present == false) - return false; - if (!codec->param.amr_octet_aligned_present) - return false; - if (strcmp(codec->subtype_name, "AMR") != 0) - return false; - return true; -} - - /* Return whether an RTP packet with AMR payload is in octet-aligned mode. * Return 0 if in bandwidth-efficient mode, 1 for octet-aligned mode, and negative if the RTP data is invalid. */ static int amr_oa_check(char *data, int len) @@ -1221,7 +1207,7 @@ if (mgcp_conn_rtp_is_iuup(conn_dst) || mgcp_conn_rtp_is_iuup(conn_src)) { /* the iuup code will correctly transform to the correct AMR mode */ - } else if (amr_oa_bwe_convert_indicated(conn_dst->end.codec)) { + } else if (mgcp_codec_amr_align_mode_is_indicated(conn_dst->end.codec)) { rc = amr_oa_bwe_convert(endp, msg, conn_dst->end.codec->param.amr_octet_aligned); if (rc < 0) { @@ -1528,14 +1514,16 @@ LOG_CONN_RTP(conn_src, LOGL_DEBUG, "rx_rtp(%u bytes)\n", msgb_length(msg)); - mgcp_conn_watchdog_kick(conn_src->conn); + /* Check if the origin of the RTP packet seems plausible */ + if (!trunk->rtp_accept_all && check_rtp_origin(conn_src, from_addr)) + return -1; /* If AMR is configured for the ingress connection and conversion of the * framing mode (octet-aligned vs. bandwith-efficient) is explicitly * defined, then we check if the incoming payload matches that * expectation. */ if (mc->proto == MGCP_PROTO_RTP && - amr_oa_bwe_convert_indicated(conn_src->end.codec)) { + mgcp_codec_amr_align_mode_is_indicated(conn_src->end.codec)) { int oa = amr_oa_check((char*)msgb_data(msg), msgb_length(msg)); if (oa < 0) return -1; @@ -1548,9 +1536,7 @@ } } - /* Check if the origin of the RTP packet seems plausible */ - if (!trunk->rtp_accept_all && check_rtp_origin(conn_src, from_addr)) - return -1; + mgcp_conn_watchdog_kick(conn_src->conn); /* Execute endpoint specific implementation that handles the * dispatching of the RTP data */
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.